bare-http1 3.6.2 → 3.6.3

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.
@@ -30,7 +30,7 @@ module.exports = class HTTPClientRequest extends HTTPOutgoingMessage {
30
30
  this.headers = { host: host + ':' + port, ...opts.headers }
31
31
 
32
32
  this._connection = connection
33
- this._chunked = true
33
+ this._chunked = method !== 'GET' && method !== 'HEAD'
34
34
 
35
35
  this._pendingFinal = null
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-http1",
3
- "version": "3.6.2",
3
+ "version": "3.6.3",
4
4
  "description": "Native HTTP/1 library for JavaScript",
5
5
  "exports": {
6
6
  ".": "./index.js",