I am looking to dynamically generate a file and stream it to the client via
chunked encoding.
So far, I have:
headers = [
('Content-Type', mime_type),
('Content-Disposition',
"attachment; filename*=utf-8''%s" % (encoded_filename,)),
]
start_response('200 OK', headers)
return [chunkone, chunktwo, chunkthree]
My question is: do I need to add a Transfer-encoding: Chunked header or not?
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/modwsgi/-/ZVJYLTJFOHF5NUlK.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.