Skip to content

Commit 4f43832

Browse files
committed
Patch cookiejar.py; relax case-sensitive regex on an inconsequential line in the cookie file.
1 parent 580bdb0 commit 4f43832

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/http/cookiejar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ class MozillaCookieJar(FileCookieJar):
19991999
header by default (Mozilla can cope with that).
20002000
20012001
"""
2002-
magic_re = re.compile("#( Netscape)? HTTP Cookie File")
2002+
magic_re = re.compile("#( Netscape)? HTTP Cookie File", re.IGNORECASE)
20032003
header = """\
20042004
# Netscape HTTP Cookie File
20052005
# http://curl.haxx.se/rfc/cookie_spec.html

0 commit comments

Comments
 (0)