Skip to content

Commit

Permalink
Fixing type of req.httpVersionMajor, & req.httpVersionMinor
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jan 16, 2018
1 parent 4e9827a commit 07d8a32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/woodland.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ class Woodland {
obj.connection = {remoteAddress: "0.0.0.0"};
obj.url = obj.headers[":path"]; //`${obj.headers[":scheme"]}//${obj.headers[":authority"]}${obj.headers[":path"]}`;
obj.httpVersion = "2.0";
obj.httpVersionMajor = "2";
obj.httpVersionMinor = "0";
obj.httpVersionMajor = 2;
obj.httpVersionMinor = 0;

delete obj.headers[":authority"];
delete obj.headers[":method"];
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woodland",
"version": "4.3.3",
"version": "4.3.4",
"description": "Lightweight HTTP/HTTPS/HTTP2 router with automatic `Allow` & `CORS` headers",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 07d8a32

Please sign in to comment.