Fix typo in format for strftime() used by cookie code.

This commit is contained in:
Guido van Rossum 1998-02-02 03:19:06 +00:00
parent ad37e9e77d
commit 48b1cdea45

View File

@ -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: