mirror of
https://github.com/python/cpython.git
synced 2024-12-14 12:26:47 +08:00
Fix typo in format for strftime() used by cookie code.
This commit is contained in:
parent
ad37e9e77d
commit
48b1cdea45
@ -151,7 +151,7 @@ def send_my_cookie(ui):
|
|||||||
then = now + COOKIE_LIFETIME
|
then = now + COOKIE_LIFETIME
|
||||||
gmt = time.gmtime(then)
|
gmt = time.gmtime(then)
|
||||||
print "Set-Cookie: %s=%s; path=/cgi-bin/;" % (name, value),
|
print "Set-Cookie: %s=%s; path=/cgi-bin/;" % (name, value),
|
||||||
print time.strftime("expires=%a, %d-%b-%x %X GMT", gmt)
|
print time.strftime("expires=%a, %d-%b-%y %X GMT", gmt)
|
||||||
|
|
||||||
class MagicDict:
|
class MagicDict:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user