Requests now send the Content-Type in the HTTP request

This commit is contained in:
Tyler Smith 2011-08-02 12:27:47 -07:00
parent 9865adbd24
commit 0682b5b32f
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ class Client(object):
try:
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
certs = {'key_file': self.key_file, 'cert_file': self.cert_file}