KG core upload/download uses query params (#405)

This commit is contained in:
cybermaggedon 2025-05-29 19:56:04 +01:00 committed by GitHub
parent 6f964e478e
commit 2e577e900a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 17 deletions

View file

@ -49,7 +49,9 @@ class StreamEndpoint:
async def error(err):
return web.HTTPInternalServerError(text = err)
async def ok(status=200, reason="OK", type="application/octet-stream"):
async def ok(
status=200, reason="OK", type="application/octet-stream"
):
response = web.StreamResponse(
status = status, reason = reason,
headers = {"Content-Type": type}
@ -58,7 +60,7 @@ class StreamEndpoint:
return response
resp = await self.dispatcher.process(
data, error, ok, request.match_info
data, error, ok, request
)
return resp