mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix typo in format for strftime() used by cookie code.
This commit is contained in:
parent
ad37e9e77d
commit
48b1cdea45
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue