From 8443e7a7493c8d33632498d7b00e8b1f33f52f02 Mon Sep 17 00:00:00 2001 From: George Sibble Date: Sat, 6 Apr 2013 13:54:59 -0700 Subject: [PATCH] Remove "Content-Type" Header from requests with no request body --- src/main/resources/python/swagger.mustache | 2 +- src/main/resources/python3/swagger.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/python/swagger.mustache b/src/main/resources/python/swagger.mustache index c635d85b90d..11b817953ec 100644 --- a/src/main/resources/python/swagger.mustache +++ b/src/main/resources/python/swagger.mustache @@ -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: diff --git a/src/main/resources/python3/swagger.mustache b/src/main/resources/python3/swagger.mustache index 2fcb394fe33..a01b69794ee 100644 --- a/src/main/resources/python3/swagger.mustache +++ b/src/main/resources/python3/swagger.mustache @@ -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: