Skip to content

Commit

Permalink
修改 auth 例子
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Nov 13, 2017
1 parent c50942b commit 0e55af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function getParam(url, name) {
http.createServer(function(req, res){
if (req.url.substr(0, '/auth?'.indexOf('?')) === '/auth') {
var method = getParam(req.url, 'method');
var pathname = getParam(req.url, 'pathname');
var pathname = decodeURIComponent(getParam(req.url, 'pathname'));
var auth = getAuthorization(method, pathname);
console.log(method, pathname);
res.writeHead(200, {
Expand Down

0 comments on commit 0e55af7

Please sign in to comment.