##// END OF EJS Templates
httppeer: improve protocol check...
Matt Mackall -
r18737:56f8522c default
parent child Browse files
Show More
@@ -145,7 +145,8 b' class httppeer(wireproto.wirepeer):'
145 145 raise error.OutOfBandError(resp.read())
146 146 # accept old "text/plain" and "application/hg-changegroup" for now
147 147 if not (proto.startswith('application/mercurial-') or
148 proto.startswith('text/plain') or
148 (proto.startswith('text/plain')
149 and not resp.headers.get('content-length')) or
149 150 proto.startswith('application/hg-changegroup')):
150 151 self.ui.debug("requested URL: '%s'\n" % util.hidepassword(cu))
151 152 raise error.RepoError(
General Comments 0
You need to be logged in to leave comments. Login now