Skip to content

Commit 6635cd5

Browse files
committed
Fix possible stalled request with Content-Encoding on error
1 parent 5addd8e commit 6635cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/read.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function read(req, res, next, parse, debug, options) {
7575
}
7676

7777
// read off entire request
78-
stream.resume()
78+
req.resume()
7979
onFinished(req, function onfinished() {
8080
next(err)
8181
})

0 commit comments

Comments
 (0)