Skip to content

Commit e671808

Browse files
committed
stamp: adjust rid correctly
(cherry picked from commit 5450e8c)
1 parent 6fc1ca1 commit e671808

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/sb_core/js/http.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { HttpConn } from 'ext:deno_http/01_http.js';
22
import { RequestPrototype } from 'ext:deno_fetch/23_request.js';
33
import { core, primordials } from "ext:core/mod.js";
4+
5+
const { internalRidSymbol } = core;
46
const { ObjectPrototypeIsPrototypeOf } = primordials;
57

68
const HttpConnPrototypeNextRequest = HttpConn.prototype.nextRequest;
@@ -40,7 +42,7 @@ function internalServerError() {
4042
}
4143

4244
function serveHttp(conn) {
43-
const [connRid, watcherRid] = ops.op_http_start(conn.rid);
45+
const [connRid, watcherRid] = ops.op_http_start(conn[internalRidSymbol]);
4446
const httpConn = new HttpConn(connRid, conn.remoteAddr, conn.localAddr);
4547

4648
httpConn.nextRequest = async () => {

0 commit comments

Comments
 (0)