From: Tyler Smith Date: Tue, 2 Aug 2011 19:27:47 +0000 (-0700) Subject: Requests now send the Content-Type in the HTTP request X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=4644db072e7737f032e0704b63bd97d13489c777;p=openstack-build%2Fneutron-build.git Requests now send the Content-Type in the HTTP request --- 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}