Commit e1594a58 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed broken upload streaming. https://github.com/nomad-coe/nomad/issues/7

parent a4180d32
Pipeline #96865 passed with stages
in 21 minutes and 49 seconds
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
from fastapi import FastAPI, status, Response from fastapi import FastAPI, status, Response
from fastapi.responses import JSONResponse, HTMLResponse from fastapi.responses import JSONResponse, HTMLResponse
from fastapi.middleware.wsgi import WSGIMiddleware # We use a2wsgi. It is an alternative to the fastapi provided WSGIMiddleware that manages
# to stream requests instead of buffering them.
from a2wsgi import WSGIMiddleware
from starlette.middleware.base import BaseHTTPMiddleware from starlette.middleware.base import BaseHTTPMiddleware
from starlette.exceptions import HTTPException as StarletteHTTPException from starlette.exceptions import HTTPException as StarletteHTTPException
from fastapi.exception_handlers import http_exception_handler as default_http_exception_handler from fastapi.exception_handlers import http_exception_handler as default_http_exception_handler
......
...@@ -83,6 +83,7 @@ jinja2 ...@@ -83,6 +83,7 @@ jinja2
rdflib rdflib
fastapi fastapi
uvicorn[standard] uvicorn[standard]
a2wsgi==1.4.0
python-multipart python-multipart
# [dev] # [dev]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment