summaryrefslogtreecommitdiff
path: root/ext/node
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node')
-rw-r--r--ext/node/polyfills/http.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index 0c6501d87..28b7f15b2 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -65,6 +65,8 @@ import { clearTimeout as webClearTimeout } from "ext:deno_web/02_timers.js";
import { resourceForReadableStream } from "ext:deno_web/06_streams.js";
import { TcpConn } from "ext:deno_net/01_net.js";
+const { internalRidSymbol } = core;
+
enum STATUS_CODES {
/** RFC 7231, 6.2.1 */
Continue = 100,
@@ -616,7 +618,7 @@ class ClientRequest extends OutgoingMessage {
this.method,
url,
headers,
- client.rid,
+ client[internalRidSymbol],
this._bodyWriteRid,
);
}
@@ -802,7 +804,7 @@ class ClientRequest extends OutgoingMessage {
}
this.destroyed = true;
- const rid = this._client?.rid;
+ const rid = this._client?.[internalRidSymbol];
if (rid) {
core.tryClose(rid);
}