]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Find 'httponly' case-insensitively
authorBen Darnell <ben@bendarnell.com>
Sat, 24 Oct 2015 17:53:26 +0000 (13:53 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 24 Oct 2015 17:53:26 +0000 (13:53 -0400)
tornado/test/web_test.py

index 3ad70153f7b0934b01901e04379a4d46e3408316..6bd7f44bc5723b0cfd32c0f8fcd89f7ff9bf969e 100644 (file)
@@ -2607,7 +2607,7 @@ class XSRFCookieKwargsTest(SimpleHandlerTestCase):
 
     def test_xsrf_httponly(self):
         response = self.fetch("/")
-        self.assertIn('HttpOnly;', response.headers['Set-Cookie'])
+        self.assertIn('httponly;', response.headers['Set-Cookie'].lower())
 
 
 @wsgi_safe