forked from loafle/openapi-generator-original
Remove "Content-Type" Header from requests with no request body
This commit is contained in:
parent
3f3471997e
commit
8443e7a749
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user