Add content-type default headers with application/json

This commit is contained in:
Honza Král
2017-02-08 20:50:50 +01:00
parent c7441e9dc0
commit d862c8a799
7 changed files with 22 additions and 7 deletions
+1
View File
@@ -61,6 +61,7 @@ class Urllib3HttpConnection(Connection):
for k in headers:
self.headers[k.lower()] = headers[k]
self.headers.setdefault('content-type', 'application/json')
ca_certs = CA_CERTS if ca_certs is None else ca_certs
pool_class = urllib3.HTTPConnectionPool
kw = {}