http: remove old useless hack for biblio which is useless now

This commit is contained in:
Jérôme Schneider 2014-10-01 15:53:03 +02:00
parent ead492fb72
commit ddc7a55a00
1 changed files with 0 additions and 4 deletions

View File

@ -154,10 +154,6 @@ class HTTPResponse(object):
self.headers.load_httpmessage(response.headers)
for setcookie in response.headers.getheaders('set-cookie'):
try:
cookie = Cookie.SimpleCookie("Set-Cookie: %s" % setcookie)
cookie = cookie.values()[0]
if self.cookies.has_key(cookie.key):
del self.cookies[cookie.key]
self.cookies.load("Set-Cookie: %s" % setcookie)
except Cookie.CookieError:
logger.warning("can't parse cookie: %r", setcookie)