From 4644db072e7737f032e0704b63bd97d13489c777 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Tue, 2 Aug 2011 12:27:47 -0700 Subject: [PATCH] Requests now send the Content-Type in the HTTP request --- quantum/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quantum/client.py b/quantum/client.py index eaced5d9d..ca05236fa 100644 --- a/quantum/client.py +++ b/quantum/client.py @@ -120,7 +120,8 @@ class Client(object): try: connection_type = self.get_connection_type() - headers = headers or {} + headers = headers or {"Content-Type": + "application/%s" % self.format} # Open connection and send request, handling SSL certs certs = {'key_file': self.key_file, 'cert_file': self.cert_file} -- 2.45.2