summaryrefslogtreecommitdiff
path: root/heatclient/common/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'heatclient/common/http.py')
-rw-r--r--heatclient/common/http.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/heatclient/common/http.py b/heatclient/common/http.py
index 0894e19..1f86c24 100644
--- a/heatclient/common/http.py
+++ b/heatclient/common/http.py
@@ -308,6 +308,9 @@ class SessionClient(adapter.LegacyJsonAdapter):
redirect = kwargs.get('redirect')
kwargs.setdefault('user_agent', USER_AGENT)
+ headers = kwargs.setdefault('headers', {})
+ headers.setdefault('Content-Type', 'application/json')
+
if 'data' in kwargs:
kwargs['data'] = jsonutils.dumps(kwargs['data'])