mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -187,7 +187,7 @@ def make_json_exception(err: Exception, status: Optional[int]=None) -> Response:
|
||||
}, status=status)
|
||||
|
||||
|
||||
async def start_streaming(request: Request, content_type: str="application/x-ndjson") -> StreamResponse:
|
||||
async def start_streaming(request: Request, content_type: str) -> StreamResponse:
|
||||
response = StreamResponse(status=200, reason="OK", headers={"Content-Type": content_type})
|
||||
await response.prepare(request)
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user