mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Update node-http socket
This commit is contained in:
parent
82fac977af
commit
89b00bb352
@ -26,7 +26,9 @@ export async function createNodeHttpServerDuplex(options: {
|
||||
// See https://github.com/nodejs/node/blob/main/lib/_http_incoming.js
|
||||
// and https://github.com/nodejs/node/blob/main/lib/_http_common.js (particularly the `parserXyz` functions)
|
||||
|
||||
const incomingMessage = new IncomingMessage({} as any);
|
||||
const incomingMessage = new IncomingMessage({
|
||||
encrypted: options.originalUrl?.protocol === "https:",
|
||||
} as any);
|
||||
incomingMessage.httpVersionMajor = 1;
|
||||
incomingMessage.httpVersionMinor = 1;
|
||||
incomingMessage.httpVersion = '1.1';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user