mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-01 10:55:13 +02:00
KG core upload/download uses query params (#405)
This commit is contained in:
parent
6f964e478e
commit
2e577e900a
5 changed files with 16 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue