Mercurial > hg
changeset 2445:e58889a9d378
merge with crew.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 16 Jun 2006 08:52:28 -0700 |
parents | bd9c39e8f38b (current diff) 5eb02f9ed804 (diff) |
children | 1b2bbb2b4911 |
files | |
diffstat | 2 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/keepalive.py Fri Jun 16 07:07:11 2006 -0700 +++ b/mercurial/keepalive.py Fri Jun 16 08:52:28 2006 -0700 @@ -99,7 +99,7 @@ """ -# $Id: keepalive.py,v 1.13 2005/10/22 21:57:28 mstenner Exp $ +# $Id: keepalive.py,v 1.14 2006/04/04 21:00:32 mstenner Exp $ import urllib2 import httplib @@ -249,12 +249,14 @@ r._url = req.get_full_url() r._connection = h r.code = r.status + r.headers = r.msg + r.msg = r.reason if r.status == 200 or not HANDLE_ERRORS: return r else: - return self.parent.error('http', req, r, r.status, r.reason, r.msg) - + return self.parent.error('http', req, r, + r.status, r.msg, r.headers) def _reuse_connection(self, h, req, host): """start the transaction with a re-used connection @@ -371,7 +373,7 @@ self.close() def info(self): - return self.msg + return self.headers def geturl(self): return self._url