From f857a2de981f14fdc81632edaa06cd79c662c4a9 Mon Sep 17 00:00:00 2001 From: Patrick Carlisle Date: Wed, 17 Feb 2010 10:21:00 -0800 Subject: [PATCH] Additional fix to upstream #11 - add missing CRLF In addition to a CRLF terminating a chunk, there must be one to terminate the chunked-body after the final chunk. ref: http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1 --- eventlet/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventlet/wsgi.py b/eventlet/wsgi.py index 9d39ead..4149308 100644 --- a/eventlet/wsgi.py +++ b/eventlet/wsgi.py @@ -274,7 +274,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler): towrite.append("%x\r\n%s\r\n" % (len(data), data)) else: # last-chunk format - towrite.append("0\r\n") + towrite.append("0\r\n\r\n") else: towrite.append(data) try: