Skip to content
Snippets Groups Projects
Commit 2ccd48e9 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

fix an incorrect comment

parent de119063
No related branches found
No related tags found
No related merge requests found
......@@ -575,8 +575,8 @@ def respond_with_json_bytes(
if send_cors:
set_cors_headers(request)
# todo: we can almost certainly avoid this copy and encode the json straight into
# the bytesIO, but it would involve faffing around with string->bytes wrappers.
# note that this is zero-copy (the bytesio shares a copy-on-write buffer with
# the original `bytes`).
bytes_io = BytesIO(json_bytes)
producer = NoRangeStaticProducer(request, bytes_io)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment