From 4e84ebda0f6a142ca2e7d8d5337cef8a9358a9b7 Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Sun, 28 Dec 2014 17:46:24 +0100 Subject: Fixed bug where BaseResponse.copy() would not copy Cookies due to a behaviour change in newest Python 3.x releases. --- bottle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bottle.py b/bottle.py index 94e9caf..a9acc38 100644 --- a/bottle.py +++ b/bottle.py @@ -1472,7 +1472,7 @@ class BaseResponse(object): copy._headers = dict((k, v[:]) for (k, v) in self._headers.items()) if self._cookies: copy._cookies = SimpleCookie() - copy._cookies.load(self._cookies.output()) + copy._cookies.load(self._cookies.output(header='')) return copy def __iter__(self): -- cgit v1.2.1