Skip to content

Commit

Permalink
Fix new compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
andywhite37 committed Jun 28, 2016
1 parent 7106269 commit bb76e4d
Show file tree
Hide file tree
Showing 2 changed files with 1,861 additions and 2,136 deletions.
4 changes: 2 additions & 2 deletions src/mw/BasicAuth.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BasicAuth {
return;
}

var authorizationHeader = req.headers["authorization"];
var authorizationHeader : String = req.headers.get(AUTHORIZATION);
if (authorizationHeader == null || authorizationHeader.trim() == "") {
send401(res, realm);
return;
Expand Down Expand Up @@ -74,7 +74,7 @@ class BasicAuth {
}

static function send401(res : Response, realm : String) : Void {
res.setHeader('WWW-Authenticate', '$BASIC $REALM="$realm"');
res.setHeader(WWW_AUTHENTICATE, '$BASIC $REALM="$realm"');
res.status(401).end();
}

Expand Down
Loading

0 comments on commit bb76e4d

Please sign in to comment.