mirror of
https://github.com/httpie/cli.git
synced 2025-08-14 03:58:22 +02:00
Preserve individual headers with the same name on responses (#1208)
* Preserve individual headers with the same name on responses * Rename RequestHeadersDict to HTTPHeadersDict * Update tests/utils/http_server.py * Update tests/utils/http_server.py * Update httpie/adapters.py Co-authored-by: Jakub Roztocil <jakub@roztocil.co>
This commit is contained in:
@ -39,7 +39,7 @@ class TestItemParsing:
|
||||
# files
|
||||
self.key_value_arg(fr'bar\@baz@{FILE_PATH_ARG}'),
|
||||
])
|
||||
# `RequestHeadersDict` => `dict`
|
||||
# `HTTPHeadersDict` => `dict`
|
||||
headers = dict(items.headers)
|
||||
|
||||
assert headers == {
|
||||
@ -88,7 +88,7 @@ class TestItemParsing:
|
||||
])
|
||||
|
||||
# Parsed headers
|
||||
# `RequestHeadersDict` => `dict`
|
||||
# `HTTPHeadersDict` => `dict`
|
||||
headers = dict(items.headers)
|
||||
assert headers == {
|
||||
'Header': 'value',
|
||||
|
Reference in New Issue
Block a user