false cookie attributes should not be set

This commit is contained in:
Raphael Deem
2017-01-25 16:47:14 -08:00
parent fb9f2171a9
commit 3c355f19eb
2 changed files with 24 additions and 2 deletions

View File

@@ -107,7 +107,8 @@ class Cookie(dict):
value.strftime("%a, %d-%b-%Y %T GMT")
))
elif key in self._flags:
output.append(self._keys[key])
if self[key]:
output.append(self._keys[key])
else:
output.append('%s=%s' % (self._keys[key], value))