From be8a2c38ea8fefdf483ea9688c2c9edbbd9e7e16 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 20 Jul 2000 19:58:54 +0000 Subject: Morsel.OutputString(): The continue test was wrong; it should test for falseness, it should explicitly test for the empty string otherwise this fails: c['foo']['max-age'] = 0 but this succeeds c['foo']['max-age'] = "0" --- misc/Cookie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/Cookie.py b/misc/Cookie.py index c359977c0..d2fe81c22 100644 --- a/misc/Cookie.py +++ b/misc/Cookie.py @@ -451,7 +451,7 @@ class Morsel(UserDict): # Now add any defined attributes for K,V in self.items(): - if not V: continue + if V == '': continue if K == "expires" and type(V) == type(1): RA("%s=%s;" % (self.__reserved[K], _getdate(V))) elif K == "max-age" and type(V) == type(1): -- cgit v1.2.3-70-g09d2