mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
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-----
This commit is contained in:
parent
e6b0f779c9
commit
2155d2e394
@ -662,10 +662,13 @@ def server(path, name, templates, address, port):
|
||||
|
||||
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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user