Skip to content

Commit

Permalink
clear cookie not working fixed (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: prasanthk <[email protected]>
  • Loading branch information
cedric05 and prasanthk authored Nov 23, 2022
1 parent fcf1d08 commit beacd5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dothttp/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.42.a3'
__version__ = '0.0.42.a4'
5 changes: 4 additions & 1 deletion dothttp/request_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def get_request(self):
self.load_def()
prep = self.httpdef.get_prepared_request()
# cookie is separately prepared
prep.prepare_cookies(self.get_cookie())
if not self.httpdef.session_clear:
prep.prepare_cookies(self.get_cookie())
else:
prep.prepare_cookies({})
return prep

def run(self):
Expand Down

0 comments on commit beacd5e

Please sign in to comment.