We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ccf1a3 commit 57b9f4bCopy full SHA for 57b9f4b
HISTORY.md
@@ -4,6 +4,7 @@ unreleased
4
* perf: enable strict mode
5
* perf: hoist regular expression
6
* perf: parse with regular expressions
7
+ * perf: remove argument reassignment
8
9
1.0.1 / 2015-05-04
10
==================
index.js
@@ -46,7 +46,8 @@ var userPassRegExp = /^([^:]*):(.*)$/
46
*/
47
48
function auth(req) {
49
- req = req.req || req;
+ // get header
50
+ var header = (req.req || req).headers.authorization
51
52
// parse header
53
var header = req.headers.authorization
0 commit comments