Skip to content

Commit

Permalink
server: fix crash fix on web-based connectRPCObject (#1524)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Jul 11, 2024
1 parent 07187d0 commit dfb18ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class ScryptedRuntime extends PluginHttp<HttpPluginData> {

const reqany = req as any;
if ((req as any).upgradeHead)
this.connectRPCObjectIO.handleUpgrade(reqany, res.socket, reqany)
this.connectRPCObjectIO.handleUpgrade(reqany, res.socket, reqany.upgradeHead)
else
this.connectRPCObjectIO.handleRequest(reqany, res);
}
Expand Down

0 comments on commit dfb18ce

Please sign in to comment.