diff options
| author | bwarsaw | 2000-07-20 19:58:54 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-07-20 19:58:54 +0000 |
| commit | be8a2c38ea8fefdf483ea9688c2c9edbbd9e7e16 (patch) | |
| tree | 47e36178f42ccb16d9ceb31966f87456f5b1095c /misc/Cookie.py | |
| parent | 6f086b570e9b6adf5819b58b39587f74b104c51a (diff) | |
| download | mailman-be8a2c38ea8fefdf483ea9688c2c9edbbd9e7e16.tar.gz mailman-be8a2c38ea8fefdf483ea9688c2c9edbbd9e7e16.tar.zst mailman-be8a2c38ea8fefdf483ea9688c2c9edbbd9e7e16.zip | |
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"
Diffstat (limited to 'misc/Cookie.py')
| -rw-r--r-- | misc/Cookie.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
