web/request.py
branchstable
changeset 7870 1a1e04163cde
parent 7858 f91255a3b2c2
child 7871 29fc83fca803
child 7872 0d0b8b3a015d
--- a/web/request.py	Mon Sep 26 19:09:12 2011 +0200
+++ b/web/request.py	Mon Sep 26 19:45:51 2011 +0200
@@ -547,8 +547,8 @@
         else:
             expires = None
         # make sure cookie is set on the correct path
-        cookie = Cookie(name, value, self.base_url_path(), expires=expires,
-                        secure=secure)
+        cookie = Cookie(str(name), str(value), self.base_url_path(),
+                        expires=expires, secure=secure)
         self.headers_out.addHeader('Set-cookie', cookie)
 
     def remove_cookie(self, name, bwcompat=None):