Skip to content

Commit

Permalink
Forgot req.method
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Jan 21, 2015
1 parent a047c85 commit caaca43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/lib/requestLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (options) {
return function (req, res, next) {
var startTime = new Date();
var end = res.end;
var _req = _.pick(req, ['url', 'headers']);
var _req = _.pick(req, ['url', 'headers', 'method']);
_req.connection = _.pick(req.connection, ['remoteAddress', 'remotePort']);
res.end = function (chunk, encoding) {
var contentLength = parseInt(res._header['content-length'], 10);
Expand Down

0 comments on commit caaca43

Please sign in to comment.