comparison mercurial/hgweb.py @ 271:35acefbf0ae6

hgweb: ignore pipe errors -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hgweb: ignore pipe errors manifest hash: 3a3baaa175a422bf499f414b5186ed551827db56 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCpVkhywK+sNU5EO8RAo5aAJ9KPR/Gwp8YBswhyKqzVYVlgBl49ACghr65 sGKxB7ctoX9XB1WDht8WUzk= =J2bp -----END PGP SIGNATURE-----
author mpm@selenic.com
date Tue, 07 Jun 2005 00:21:53 -0800
parents 24e9e140485f
children a0acae914e95 27d08c0c2a7e
comparison
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: