1. cherrypy
  2. CherryPy

Commits

Joel Rivera  committed f07c06f

Modify the CoreRequestHandlingTest.testCookies to use an invalid
character for a cookie in python 3 and 2. In this case a comma.

Closing issue #1257

  • Participants
  • Parent commits a70206d
  • Branches default

Comments (0)

Files changed (1)

File cherrypy/test/test_core.py

View file
  • Ignore whitespace
         self.assertHeader('Set-Cookie', header_value('First=Dinsdale'))
         self.assertHeader('Set-Cookie', header_value('Last=Piranha'))
 
-        self.getPage("/cookies/single?name=Something-With:Colon",
-            [('Cookie', 'Something-With:Colon=some-value')])
+        self.getPage("/cookies/single?name=Something-With%2CComma",
+            [('Cookie', 'Something-With,Comma=some-value')])
         self.assertStatus(400)
 
     def testDefaultContentType(self):