postman-request
Advanced tools
Comparing version 2.88.1-postman.36 to 2.88.1-postman.37
@@ -167,3 +167,3 @@ const url = require('url') | ||
_flushHeaders () { | ||
_flushHeaders (endStream = false) { | ||
if (this[kHeadersFlushed]) { | ||
@@ -178,3 +178,3 @@ throw new Error('Headers already flushed') | ||
this.stream = this._client.request(this.requestHeaders, { endStream: false }) | ||
this.stream = this._client.request(this.requestHeaders, {endStream}) | ||
@@ -215,3 +215,3 @@ this.registerListeners() | ||
if (!this[kHeadersFlushed]) { | ||
this._flushHeaders() | ||
this._flushHeaders(true) | ||
} | ||
@@ -323,3 +323,3 @@ this.stream.end() | ||
get headers () { | ||
return this.response | ||
return Object.fromEntries(Object.entries(this.response)) | ||
} | ||
@@ -326,0 +326,0 @@ |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.88.1-postman.36", | ||
"version": "2.88.1-postman.37", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204459
4130