[ci] format
This commit is contained in:
parent
6e27f2f6db
commit
6533041ce0
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ function createRequestFromNodeRequest(req: NodeIncomingMessage, body?: Uint8Arra
|
||||||
req.socket instanceof TLSSocket || req.headers['x-forwarded-proto'] === 'https'
|
req.socket instanceof TLSSocket || req.headers['x-forwarded-proto'] === 'https'
|
||||||
? 'https'
|
? 'https'
|
||||||
: 'http';
|
: 'http';
|
||||||
const hostname = req.headers.host || req.headers[':authority'];
|
const hostname = req.headers.host || req.headers[':authority'];
|
||||||
const url = `${protocol}://${hostname}${req.url}`;
|
const url = `${protocol}://${hostname}${req.url}`;
|
||||||
const rawHeaders = req.headers as Record<string, any>;
|
const rawHeaders = req.headers as Record<string, any>;
|
||||||
const entries = Object.entries(rawHeaders);
|
const entries = Object.entries(rawHeaders);
|
||||||
|
|
Loading…
Reference in a new issue