aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/node/http.js6
-rw-r--r--src/js/out/modules/node/http.js4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/js/node/http.js b/src/js/node/http.js
index 4fba20881..658e45433 100644
--- a/src/js/node/http.js
+++ b/src/js/node/http.js
@@ -835,6 +835,9 @@ export class OutgoingMessage extends Writable {
#timeoutTimer = null;
[kAbortController] = null;
+ // Express "compress" package uses this
+ _implicitHeader() {}
+
// For compat with IncomingRequest
get headers() {
if (!this.#headers) return kEmptyObject;
@@ -977,6 +980,9 @@ export class ServerResponse extends Writable {
#deferred = undefined;
#finished = false;
+ // Express "compress" package uses this
+ _implicitHeader() {}
+
_write(chunk, encoding, callback) {
if (!this.#firstWrite && !this.headersSent) {
this.#firstWrite = chunk;
diff --git a/src/js/out/modules/node/http.js b/src/js/out/modules/node/http.js
index e5f96de48..ab0d68e96 100644
--- a/src/js/out/modules/node/http.js
+++ b/src/js/out/modules/node/http.js
@@ -543,6 +543,8 @@ class OutgoingMessage extends Writable {
#fakeSocket;
#timeoutTimer = null;
[kAbortController] = null;
+ _implicitHeader() {
+ }
get headers() {
if (!this.#headers)
return kEmptyObject;
@@ -647,6 +649,8 @@ class ServerResponse extends Writable {
_removedContLen = !1;
#deferred = void 0;
#finished = !1;
+ _implicitHeader() {
+ }
_write(chunk, encoding, callback) {
if (!this.#firstWrite && !this.headersSent) {
this.#firstWrite = chunk, callback();