devtools/fake.py
branchstable
changeset 7855 54283a5b7afc
parent 7436 28ec860c4436
child 7870 1a1e04163cde
--- a/devtools/fake.py	Fri Sep 23 12:17:12 2011 +0200
+++ b/devtools/fake.py	Fri Sep 23 12:16:29 2011 +0200
@@ -63,8 +63,8 @@
         self._session_data = {}
         self._headers_in = Headers()
 
-    def set_cookie(self, cookie, key, maxage=300, expires=None):
-        super(FakeRequest, self).set_cookie(cookie, key, maxage=300, expires=None)
+    def set_cookie(self, name, value, maxage=300, expires=None, secure=False):
+        super(FakeRequest, self).set_cookie(name, value, maxage, expires, secure)
         cookie = self.get_response_header('Set-Cookie')
         self._headers_in.setHeader('Cookie', cookie)