1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Fix handling of session files with Cookie: followed by other headers (#1127)

* Fix the handling of cookies from session files

* Apply suggestions from code review

Co-authored-by: Jakub Roztocil <jakub@roztocil.co>

* Fix test docstring formatting

Co-authored-by: Jakub Roztocil <jakub@roztocil.co>
This commit is contained in:
Mickaël Schoentgen
2021-08-16 14:50:46 +02:00
committed by GitHub
parent 54c8612452
commit d7caeaf372
3 changed files with 20 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ class Session(BaseConfigDict):
"""
headers = self.headers
for name, value in request_headers.items():
for name, value in request_headers.copy().items():
if value is None:
continue # Ignore explicitly unset headers