bare-http1 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -156,6 +156,9 @@ module.exports = class HTTPServerConnection {
156
156
  this._onreset()
157
157
  })
158
158
 
159
+ this.req.resume()
160
+ this.req.pause()
161
+
159
162
  if (headers.connection && headers.connection.toLowerCase() === 'upgrade') {
160
163
  const head = this._buffer
161
164
  this._buffer = null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-http1",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Native HTTP/1 library for JavaScript",
5
5
  "exports": {
6
6
  ".": "./index.js",