@vercel/python 3.1.42 → 3.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vc_init.py +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.44",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"@types/execa": "^0.9.0",
|
|
24
24
|
"@types/jest": "27.4.1",
|
|
25
25
|
"@types/node": "14.18.33",
|
|
26
|
-
"@vercel/build-utils": "6.0
|
|
26
|
+
"@vercel/build-utils": "6.2.0",
|
|
27
27
|
"@vercel/ncc": "0.24.0",
|
|
28
28
|
"execa": "^1.0.0",
|
|
29
29
|
"typescript": "4.3.4"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "a585969dd3b77a4ed36d6a2ca11b34f9050489f1"
|
|
32
32
|
}
|
package/vc_init.py
CHANGED
|
@@ -276,6 +276,14 @@ elif 'app' in __vc_variables:
|
|
|
276
276
|
query = url.query.encode()
|
|
277
277
|
path = url.path
|
|
278
278
|
|
|
279
|
+
headers_encoded = []
|
|
280
|
+
for k, v in headers.items():
|
|
281
|
+
# Cope with repeated headers in the encoding.
|
|
282
|
+
if isinstance(v, list):
|
|
283
|
+
headers_encoded.append([k.lower().encode(), [i.encode() for i in v]])
|
|
284
|
+
else:
|
|
285
|
+
headers_encoded.append([k.lower().encode(), v.encode()])
|
|
286
|
+
|
|
279
287
|
scope = {
|
|
280
288
|
'server': (headers.get('host', 'lambda'), headers.get('x-forwarded-port', 80)),
|
|
281
289
|
'client': (headers.get(
|
|
@@ -285,7 +293,7 @@ elif 'app' in __vc_variables:
|
|
|
285
293
|
'scheme': headers.get('x-forwarded-proto', 'http'),
|
|
286
294
|
'root_path': '',
|
|
287
295
|
'query_string': query,
|
|
288
|
-
'headers':
|
|
296
|
+
'headers': headers_encoded,
|
|
289
297
|
'type': 'http',
|
|
290
298
|
'http_version': '1.1',
|
|
291
299
|
'method': payload['method'],
|