aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/http.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/node/http.ts')
-rw-r--r--src/js/node/http.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/js/node/http.ts b/src/js/node/http.ts
index 4d56a34cf..db09acda3 100644
--- a/src/js/node/http.ts
+++ b/src/js/node/http.ts
@@ -607,7 +607,7 @@ class IncomingMessage extends Readable {
this.#fakeSocket = socket;
this.url = url.pathname + url.search;
- this.#nodeReq = nodeReq;
+ this.#nodeReq = this.req = nodeReq;
assignHeaders(this, req);
}
@@ -624,10 +624,6 @@ class IncomingMessage extends Readable {
#type;
#nodeReq;
- get req() {
- return this.#nodeReq;
- }
-
_construct(callback) {
// TODO: streaming
if (this.#type === "response" || this.#noBody) {