From 397ebd4bdb555e73e55952ff6379c1ea822bb139 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 c635d85b90dd..11b817953ec6 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 2fcb394fe33e..a01b69794eea 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: