Skip to content

Commit 54f00e8

Browse files
committed
fix: allow setting 0 timeout
1 parent 1b27304 commit 54f00e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function proxy (req, res, head, {
8989
}
9090
}
9191

92-
if (timeout) {
92+
if (timeout != null) {
9393
req.setTimeout(timeout, onRequestTimeout)
9494
}
9595

0 commit comments

Comments
 (0)