mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
parent
b79235afb7
commit
60eea1f171
@ -451,6 +451,8 @@ class Compute:
|
|||||||
elif data is not None:
|
elif data is not None:
|
||||||
if hasattr(data, '__json__'):
|
if hasattr(data, '__json__'):
|
||||||
data = json.dumps(data.__json__())
|
data = json.dumps(data.__json__())
|
||||||
|
elif isinstance(data, aiohttp.streams.EmptyStreamReader):
|
||||||
|
data = None
|
||||||
# Stream the request
|
# Stream the request
|
||||||
elif isinstance(data, aiohttp.streams.StreamReader) or isinstance(data, bytes):
|
elif isinstance(data, aiohttp.streams.StreamReader) or isinstance(data, bytes):
|
||||||
chunked = True
|
chunked = True
|
||||||
|
Loading…
Reference in New Issue
Block a user