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.
res.statusCode
1 parent 294fd4e commit ffe222cCopy full SHA for ffe222c
src/webjs.coffee
@@ -120,8 +120,7 @@ exports.GenericApp = class GenericApp
120
log_request: (req, res, data) ->
121
td = (new Date()) - req.start_date
122
@log('info', req.method + ' ' + req.url + ' ' + td + 'ms ' +
123
- (if res.finished and res._header then res._header.split('\r')[0].split(' ')[1] \
124
- else '(unfinished)'))
+ (if res.finished then res.statusCode else '(unfinished)'))
125
return data
126
127
log: (severity, line) ->
0 commit comments