mercurial/hgweb.py
changeset 271 35acefbf0ae6
parent 269 24e9e140485f
child 322 a0acae914e95
child 330 27d08c0c2a7e
equal deleted inserted replaced
270:5a80ed2158c8 271:35acefbf0ae6
   660     import BaseHTTPServer
   660     import BaseHTTPServer
   661     import sys, os
   661     import sys, os
   662 
   662 
   663     class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):
   663     class hgwebhandler(BaseHTTPServer.BaseHTTPRequestHandler):
   664         def do_POST(self):
   664         def do_POST(self):
   665             self.do_hgweb()
   665             try:
       
   666                 self.do_hgweb()
       
   667             except socket.error, inst:
       
   668                 if inst.args[0] != 32: raise
   666 
   669 
   667         def do_GET(self):
   670         def do_GET(self):
   668             self.do_hgweb()
   671             self.do_POST()
   669 
   672 
   670         def do_hgweb(self):
   673         def do_hgweb(self):
   671             query = ""
   674             query = ""
   672             p = self.path.find("?")
   675             p = self.path.find("?")
   673             if p:
   676             if p: