changeset 271 | 35acefbf0ae6 |
parent 269 | 24e9e140485f |
child 322 | a0acae914e95 |
child 330 | 27d08c0c2a7e |
--- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -662,10 +662,13 @@ def server(path, name, templates, addres class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler): def do_POST(self): - self.do_hgweb() + try: + self.do_hgweb() + except socket.error, inst: + if inst.args[0] != 32: raise def do_GET(self): - self.do_hgweb() + self.do_POST() def do_hgweb(self): query = ""