mirror of
https://github.com/httpie/cli.git
synced 2025-06-20 09:37:45 +02:00
Multiple headers TODO.
This commit is contained in:
parent
5f42a21cfb
commit
093dab5896
@ -15,6 +15,8 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
OrderedDict = dict
|
OrderedDict = dict
|
||||||
|
|
||||||
|
# TODO: Use MultiDict for headers once added to `requests`.
|
||||||
|
# https://github.com/jkbr/httpie/issues/130
|
||||||
from requests.structures import CaseInsensitiveDict
|
from requests.structures import CaseInsensitiveDict
|
||||||
|
|
||||||
from .compat import urlsplit, str
|
from .compat import urlsplit, str
|
||||||
@ -481,9 +483,6 @@ class ParamDict(OrderedDict):
|
|||||||
data and URL params.
|
data and URL params.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# NOTE: Won't work when used for form data with multiple values
|
|
||||||
# for a field and a file field is present:
|
|
||||||
# https://github.com/kennethreitz/requests/issues/737
|
|
||||||
if key not in self:
|
if key not in self:
|
||||||
super(ParamDict, self).__setitem__(key, value)
|
super(ParamDict, self).__setitem__(key, value)
|
||||||
else:
|
else:
|
||||||
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
#
|
Loading…
x
Reference in New Issue
Block a user