Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
missing auth header returns a 401
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Jun 30, 2010
1 parent de3074d commit af34dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion basicAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function basicAuth(callback) {
res.end();
}
} else {
res.writeHead(400);
res.writeHead(401);
res.end();
}
}
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
"test missing Authorization": function (assert) {
assert.response(server,
{url: "/"},
{status: 400}
{status: 401}
);
},

Expand Down

0 comments on commit af34dba

Please sign in to comment.