Skip to content

Commit

Permalink
Not coercing while parsing the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Oct 2, 2017
1 parent 9db0c87 commit 860b3db
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion lib/etag.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ETag {
const obj = this;

return function etag (req, res, next) {
const parsed = parse(req),
const parsed = parse(req, false),
implicit = regex.implicitGet.test(req.method),
cached = obj.cache.get(obj.hash(parsed.href));

Expand Down
110 changes: 55 additions & 55 deletions 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": "tiny-etag",
"version": "1.3.8",
"version": "1.3.9",
"description": "ETag middleware",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 860b3db

Please sign in to comment.