Skip to content

Commit

Permalink
Merge f2d6595 into 5b396e3
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Jun 13, 2019
2 parents 5b396e3 + f2d6595 commit d24d16a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: node_js
node_js:
- "0.8"
- "0.10"
- "0.12"
- "1.8"
- "2.5"
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function responseTime (options) {
: opts

return function responseTime (req, res, next) {
var startAt = process.hrtime()
var startAt = req[Symbol.for('request-received.startAt')] ? req[Symbol.for('request-received.startAt')] : process.hrtime()

onHeaders(res, function onHeaders () {
var diff = process.hrtime(startAt)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"index.js"
],
"engines": {
"node": ">= 0.8.0"
"node": ">= 0.12.0"
},
"scripts": {
"lint": "eslint --plugin markdown --ext js,md .",
Expand Down

0 comments on commit d24d16a

Please sign in to comment.