diff -r 031fc0231f3d Lib/http/cookies.py --- a/Lib/http/cookies.py Thu Jan 15 22:53:21 2015 +0100 +++ b/Lib/http/cookies.py Fri Jan 16 06:25:30 2015 -0800 @@ -330,8 +330,8 @@ "comment" : "Comment", "domain" : "Domain", "max-age" : "Max-Age", - "secure" : "secure", - "httponly" : "httponly", + "secure" : "Secure", + "httponly" : "HttpOnly", "version" : "Version", } diff -r 031fc0231f3d Lib/test/test_http_cookies.py --- a/Lib/test/test_http_cookies.py Thu Jan 15 22:53:21 2015 +0100 +++ b/Lib/test/test_http_cookies.py Fri Jan 16 06:25:30 2015 -0800 @@ -114,7 +114,7 @@ C['Customer']['secure'] = True C['Customer']['httponly'] = True self.assertEqual(C.output(), - 'Set-Cookie: Customer="WILE_E_COYOTE"; httponly; secure') + 'Set-Cookie: Customer="WILE_E_COYOTE"; HttpOnly; Secure') def test_secure_httponly_false_if_not_present(self): C = cookies.SimpleCookie() @@ -145,7 +145,7 @@ C = cookies.SimpleCookie() C.load('eggs = scrambled ; secure ; path = bar ; foo=foo ') self.assertEqual(C.output(), - 'Set-Cookie: eggs=scrambled; Path=bar; secure\r\nSet-Cookie: foo=foo') + 'Set-Cookie: eggs=scrambled; Path=bar; Secure\r\nSet-Cookie: foo=foo') def test_quoted_meta(self): # Try cookie with quoted meta-data