forked from loafle/openapi-generator-original
Remove "Content-Type" Header from requests with no request body
This commit is contained in:
@@ -36,7 +36,7 @@ class ApiClient:
|
||||
for param, value in headerParams.iteritems():
|
||||
headers[param] = value
|
||||
|
||||
headers['Content-type'] = 'application/json'
|
||||
#headers['Content-type'] = 'application/json'
|
||||
headers['api_key'] = self.apiKey
|
||||
|
||||
if self.cookie:
|
||||
|
||||
@@ -35,7 +35,7 @@ class ApiClient:
|
||||
for param, value in headerParams.items():
|
||||
headers[param] = value
|
||||
|
||||
headers['Content-type'] = 'application/json'
|
||||
#headers['Content-type'] = 'application/json'
|
||||
headers['api_key'] = self.apiKey
|
||||
|
||||
if self.cookie:
|
||||
|
||||
Reference in New Issue
Block a user