Commit 8db12070 authored by 's avatar

Made FTPResponse.expireCookie tolerant of non-existing cookie names.

parent cf123077
......@@ -111,7 +111,8 @@ class FTPResponse(ZServerHTTPResponse):
self.cookies[name]=self.cookies[name] + value
def expireCookie(self, name, **kw):
del self.cookies[name]
if self.cookies.has_key(name):
del self.cookies[name]
def _cookie_list(self):
return []
......
......@@ -111,7 +111,8 @@ class FTPResponse(ZServerHTTPResponse):
self.cookies[name]=self.cookies[name] + value
def expireCookie(self, name, **kw):
del self.cookies[name]
if self.cookies.has_key(name):
del self.cookies[name]
def _cookie_list(self):
return []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment