8000 add req.url so that connect works with restify · wxqGitHub/log4js-node@b55eb70 · GitHub
[go: up one dir, main page]

Skip to content

Commit b55eb70

Browse files
author
Abrar Ahmed
committed
add req.url so that connect works with restify
1 parent 4e0a718 commit b55eb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/connect-logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function assemble_tokens(req, res, custom_tokens) {
128128
};
129129

130130
var default_tokens = [];
131-
default_tokens.push({ token: ':url', replacement: req.originalUrl });
131+
default_tokens.push({ token: ':url', replacement: req.originalUrl || req.url });
132132
default_tokens.push({ token: ':protocol', replacement: req.protocol });
133133
default_tokens.push({ token: ':hostname', replacement: req.hostname });
134134
default_tokens.push({ token: ':method', replacement: req.method });

0 commit comments

Comments
 (0)
0