mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-17 23:42:33 +01:00
fix an incorrect comment
This commit is contained in:
parent
de119063f2
commit
2ccd48e921
1 changed files with 2 additions and 2 deletions
|
@ -575,8 +575,8 @@ def respond_with_json_bytes(
|
||||||
if send_cors:
|
if send_cors:
|
||||||
set_cors_headers(request)
|
set_cors_headers(request)
|
||||||
|
|
||||||
# todo: we can almost certainly avoid this copy and encode the json straight into
|
# note that this is zero-copy (the bytesio shares a copy-on-write buffer with
|
||||||
# the bytesIO, but it would involve faffing around with string->bytes wrappers.
|
# the original `bytes`).
|
||||||
bytes_io = BytesIO(json_bytes)
|
bytes_io = BytesIO(json_bytes)
|
||||||
|
|
||||||
producer = NoRangeStaticProducer(request, bytes_io)
|
producer = NoRangeStaticProducer(request, bytes_io)
|
||||||
|
|
Loading…
Reference in a new issue