@vercel/python 4.4.0 → 4.4.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vc_init.py +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
package/vc_init.py CHANGED
@@ -28,7 +28,7 @@ def format_headers(headers, decode=False):
28
28
  return keyToList
29
29
 
30
30
  if 'VERCEL_IPC_FD' in os.environ:
31
- from http.server import HTTPServer
31
+ from http.server import ThreadingHTTPServer
32
32
  import http
33
33
  import time
34
34
  import contextvars
@@ -312,7 +312,7 @@ if 'VERCEL_IPC_FD' in os.environ:
312
312
  asyncio.run(app(scope, receive, send))
313
313
 
314
314
  if 'Handler' in locals():
315
- server = HTTPServer(('127.0.0.1', 0), Handler)
315
+ server = ThreadingHTTPServer(('127.0.0.1', 0), Handler)
316
316
  send_message({
317
317
  "type": "server-started",
318
318
  "payload": {