Show More
@@ -311,9 +311,9 b' class httppeer(wireproto.wirepeer):' | |||||
311 | self.ui.warn(_('real URL is %s\n') % resp_url) |
|
311 | self.ui.warn(_('real URL is %s\n') % resp_url) | |
312 | self._url = resp_url |
|
312 | self._url = resp_url | |
313 | try: |
|
313 | try: | |
314 | proto = resp.getheader('content-type') |
|
314 | proto = pycompat.bytesurl(resp.getheader(r'content-type', r'')) | |
315 | except AttributeError: |
|
315 | except AttributeError: | |
316 | proto = resp.headers.get('content-type', '') |
|
316 | proto = pycompat.bytesurl(resp.headers.get(r'content-type', r'')) | |
317 |
|
317 | |||
318 | safeurl = util.hidepassword(self._url) |
|
318 | safeurl = util.hidepassword(self._url) | |
319 | if proto.startswith('application/hg-error'): |
|
319 | if proto.startswith('application/hg-error'): |
General Comments 0
You need to be logged in to leave comments.
Login now