Requests now send the Content-Type in the HTTP request
This commit is contained in:
parent
9865adbd24
commit
0682b5b32f
@ -120,7 +120,8 @@ class Client(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
connection_type = self.get_connection_type()
|
connection_type = self.get_connection_type()
|
||||||
headers = headers or {}
|
headers = headers or {"Content-Type":
|
||||||
|
"application/%s" % self.format}
|
||||||
|
|
||||||
# Open connection and send request, handling SSL certs
|
# Open connection and send request, handling SSL certs
|
||||||
certs = {'key_file': self.key_file, 'cert_file': self.cert_file}
|
certs = {'key_file': self.key_file, 'cert_file': self.cert_file}
|
||||||
|
Loading…
Reference in New Issue
Block a user