Skip to content

Commit

Permalink
fix: timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Sep 12, 2017
1 parent fab235f commit c529c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function impl (req, resOrSocket, headOrNil, {
}

if (timeout) {
req.setTimeout(timeout, () => onError(new createError.RequestTimeout()))
req.setTimeout(timeout, () => onError(createError('request timeout', null, 408)))
}

if (resOrSocket instanceof net.Socket) {
Expand Down

0 comments on commit c529c4b

Please sign in to comment.