Skip to content

Commit

Permalink
Fix XHR server side to actually write a response for chunked output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Oct 20, 2014
1 parent 7073c41 commit d9bc182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XMLHttpRequest/resources/chunked.py
Expand Up @@ -7,7 +7,7 @@ def main(request, response):
response.headers.set("Transfer-Encoding", "chunked");
response.headers.set("Trailer", "X-Test-Me");
response.headers.set("Content-Type", "text/plain");
response.writer.flush()
response.write_status_headers()

for value in chunks:
response.writer.write("%d\r\n" % len(value))
Expand Down

0 comments on commit d9bc182

Please sign in to comment.