[issue1159051] Handle corrupted gzip files with unexpected EOF

2011-09-08 Thread Yoav Weiss
Yoav Weiss added the comment: What is the reason that the currently submitted patch is not good enough and current stage is "needs patch"? The current patch seem to solve this issue, which is a very common one when dealing with gzip files coming from the Internet. In any case, an

[issue12439] BaseHTTPServer's send_reponse adds extra "\r\n" when using HTTPMessage in input

2011-07-04 Thread Yoav Weiss
Yoav Weiss added the comment: Thanks for correcting me. I guess I assumed that the "message" variable is an HTTPMessage. Is send_response documented somewhere? I failed to find a reference. On Sun, Jul 3, 2011 at 9:45 PM, Petri Lehtinen wrote: > > Petri Lehtinen added the

[issue12439] BaseHTTPServer's send_reponse adds extra "\r\n" when using HTTPMessage in input

2011-06-29 Thread Yoav Weiss
New submission from Yoav Weiss : I'm using BaseHTTPServer's send_response (from within a class that inherits BaseHTTPRequestHandler) with the following: self.send_response(response.code, response.headers) self.end_headers() self.wfile.write(content) self.wfile.fl