mirror of
https://github.com/python/cpython.git
synced 2024-12-13 11:54:54 +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
|
||||
gmt = time.gmtime(then)
|
||||
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user