Skip to content
Snippets Groups Projects
Commit 3fbdbeab authored by kiilerix's avatar kiilerix
Browse files

hgweb: don't pass empty response chunks on

hgweb internals will often produce empty writes - especially when returning
compressed data.  hgweb is no middleware application and there is thus no
reason to pass them on to be processed in other layers.
parent c0d63e18
No related branches found
No related tags found
No related merge requests found
......@@ -105,11 +105,12 @@
self.headers = []
def write(self, thing):
try:
self.server_write(thing)
except socket.error, inst:
if inst[0] != errno.ECONNRESET:
raise
if thing:
try:
self.server_write(thing)
except socket.error, inst:
if inst[0] != errno.ECONNRESET:
raise
def writelines(self, lines):
for line in lines:
......
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