web/request.py
changeset 7871 29fc83fca803
parent 7868 39a54b88906d
parent 7870 1a1e04163cde
child 7894 ad0eeb0f7a8d
--- a/web/request.py	Mon Sep 26 19:35:44 2011 +0200
+++ b/web/request.py	Mon Sep 26 19:46:04 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):