Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #19585 -- Fixed loading cookie value as a dict

This regression was introduced by the 'unicode_literals' patch.
  • Loading branch information...
commit f08e739bc2ba5d3530a806378087227728369464 1 parent 4e2e8f3
Claude Paroz authored January 11, 2013
5  django/http/cookie.py
... ...
@@ -1,6 +1,7 @@
@@ -48,7 +49,9 @@ def value_encode(self, val):
4  tests/regressiontests/httpwrappers/tests.py
@@ -588,3 +588,7 @@ def test_httponly_after_load(self):
588 588
         c['name']['httponly'] = True
589 589
         self.assertTrue(c['name']['httponly'])
590 590
 
  591
+    def test_load_dict(self):
  592
+        c = SimpleCookie()
  593
+        c.load({'name': 'val'})
  594
+        self.assertEqual(c['name'].value, 'val')

0 notes on commit f08e739

Please sign in to comment.
Something went wrong with that request. Please try again.