##// END OF EJS Templates
httppeer: extract content-type from headers using native str...
Augie Fackler -
r34726:a288712d default
parent child Browse files
Show More
@@ -311,9 +311,9 b' class httppeer(wireproto.wirepeer):'
311 311 self.ui.warn(_('real URL is %s\n') % resp_url)
312 312 self._url = resp_url
313 313 try:
314 proto = resp.getheader('content-type')
314 proto = pycompat.bytesurl(resp.getheader(r'content-type', r''))
315 315 except AttributeError:
316 proto = resp.headers.get('content-type', '')
316 proto = pycompat.bytesurl(resp.headers.get(r'content-type', r''))
317 317
318 318 safeurl = util.hidepassword(self._url)
319 319 if proto.startswith('application/hg-error'):
General Comments 0
You need to be logged in to leave comments. Login now