From: Ben Darnell Date: Sat, 24 Oct 2015 17:53:26 +0000 (-0400) Subject: Find 'httponly' case-insensitively X-Git-Tag: v4.3.0b2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2168723b28fbcf06df28375b9163ad4e499b4b;p=thirdparty%2Ftornado.git Find 'httponly' case-insensitively --- diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py index 3ad70153f..6bd7f44bc 100644 --- a/tornado/test/web_test.py +++ b/tornado/test/web_test.py @@ -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