1. Armin Ronacher
  2. werkzeug-main

Commits

Armin Ronacher  committed f4d1fc3

Fixed a typo that broke a test and multiple cookies in test client

  • Participants
  • Parent commits 657223a
  • Branches default

Comments (0)

Files changed (2)

File tests/test_test.py

View file
  • Ignore whitespace
     resp = client.get('/')
     assert resp.data == '[]'
     resp = client.get('/')
-    assert resp.data == "[('test1', u'foo,'), ('test2', u'bar')]"
+    assert resp.data == "[('test1', u'foo'), ('test2', u'bar')]"

File werkzeug/test.py

View file
  • Ignore whitespace
         for cookie in self:
             cvals.append('%s=%s' % (cookie.name, cookie.value))
         if cvals:
-            environ['HTTP_COOKIE'] = ', '.join(cvals)
+            environ['HTTP_COOKIE'] = '; '.join(cvals)
 
     def extract_wsgi(self, environ, headers):
         """Extract the server's set-cookie headers as cookies into the