cpython: d3671e6ba106 (original) (raw)
Mercurial > cpython
changeset 94189:d3671e6ba106
merge 3.4 (#22986) [#22986]
Benjamin Peterson benjamin@python.org | |
---|---|
date | Fri, 16 Jan 2015 20:46:37 -0500 |
parents | 031fc0231f3d(current diff)0d8380c493ad(diff) |
children | b5821f7493c1 |
files | Lib/http/cookies.py Lib/test/test_http_cookies.py Misc/NEWS |
diffstat | 3 files changed, 7 insertions(+), 4 deletions(-)[+] [-] Lib/http/cookies.py 4 Lib/test/test_http_cookies.py 4 Misc/NEWS 3 |
line wrap: on
line diff
--- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -330,8 +330,8 @@ class Morsel(dict): "comment" : "Comment", "domain" : "Domain", "max-age" : "Max-Age",
"secure" : "secure",[](#l1.7)
"httponly" : "httponly",[](#l1.8)
--- a/Lib/test/test_http_cookies.py +++ b/Lib/test/test_http_cookies.py @@ -114,7 +114,7 @@ class CookieTests(unittest.TestCase): C['Customer']['secure'] = True C['Customer']['httponly'] = True self.assertEqual(C.output(),
'Set-Cookie: Customer="WILE_E_COYOTE"; httponly; secure')[](#l2.7)
'Set-Cookie: Customer="WILE_E_COYOTE"; HttpOnly; Secure')[](#l2.8)
def test_secure_httponly_false_if_not_present(self): C = cookies.SimpleCookie() @@ -145,7 +145,7 @@ class CookieTests(unittest.TestCase): 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')[](#l2.16)
'Set-Cookie: eggs=scrambled; Path=bar; Secure\r\nSet-Cookie: foo=foo')[](#l2.17)
def test_quoted_meta(self): # Try cookie with quoted meta-data
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -203,6 +203,9 @@ Core and Builtins Library ------- +- Issue #23250: In the http.cookies module, capitalize "HttpOnly" and "Secure"