Skip to content

Commit d112f77

Browse files
committed
fix method
1 parent 0a7daea commit d112f77

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/kit/src/exports/node/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,13 @@ export async function getRequest({ request, base, bodySizeLimit }) {
110110
if (request.httpVersionMajor >= 2) {
111111
// the Request constructor rejects headers with ':' in the name
112112
headers = Object.assign({}, headers);
113-
if (headers[':method']) {
114-
if (!headers.method) {
115-
headers.method = headers[':method'];
116-
}
117-
delete headers[':method'];
118-
}
119113
if (headers[':authority']) {
120114
if (!headers.host) {
121115
headers.host = headers[':authority'];
122116
}
123117
delete headers[':authority'];
124118
}
119+
delete headers[':method'];
125120
delete headers[':path'];
126121
delete headers[':scheme'];
127122
}

0 commit comments

Comments
 (0)