mercurial/hgweb.py
changeset 271 35acefbf0ae6
parent 269 24e9e140485f
child 322 a0acae914e95
child 330 27d08c0c2a7e
--- a/mercurial/hgweb.py	Tue Jun 07 00:07:31 2005 -0800
+++ b/mercurial/hgweb.py	Tue Jun 07 00:21:53 2005 -0800
@@ -662,10 +662,13 @@
 
     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 = ""