]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Include proper Content-Type in the HTTP response headers
authorsridhargaddam <sridhar.gaddam@enovance.com>
Mon, 24 Feb 2014 15:21:31 +0000 (20:51 +0530)
committersridhargaddam <sridhar.gaddam@enovance.com>
Tue, 25 Feb 2014 10:26:43 +0000 (15:56 +0530)
commit50da460869661ba63971a17c9c1b514bf22874a2
tree987cc63917b91d39f744b7361d1f1cfb2ad7c954
parentb0671111b28be10346705d496b9540a88851d5dc
Include proper Content-Type in the HTTP response headers

Neutron namespace proxy handler and metadata agent were not setting the
Content-Type in its response. Both of them were returning only the response
data which is obtained from the nova-metadata-service. Since they were returning
only the response data, the Content-Type returned to the clients has the default
one which is - "text/html". Ideally this should be set to the data type which is
present in the HTTP Response. The fix now includes the Content-Type which is
returned by nova-metadata-service

Closes-Bug: #1243878
Change-Id: If68f0b508fbea4ecd1eb0e58d602b5ba6ccbe263
neutron/agent/metadata/agent.py
neutron/agent/metadata/namespace_proxy.py
neutron/tests/unit/test_metadata_agent.py
neutron/tests/unit/test_metadata_namespace_proxy.py