From 0f2168723b28fbcf06df28375b9163ad4e499b4b Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sat, 24 Oct 2015 13:53:26 -0400 Subject: [PATCH] Find 'httponly' case-insensitively --- tornado/test/web_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2