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
Reviewed: https:/ /review. openstack. org/75902 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=50da4608696 61ba63971a17c9c 1b514bf22874a2
Committed: https:/
Submitter: Jenkins
Branch: master
commit 50da460869661ba 63971a17c9c1b51 4bf22874a2
Author: sridhargaddam <email address hidden>
Date: Mon Feb 24 20:51:31 2014 +0530
Include proper Content-Type in the HTTP response headers
Neutron namespace proxy handler and metadata agent were not setting the service. Since they were returning service
Content-Type in its response. Both of them were returning only the response
data which is obtained from the nova-metadata-
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-
Closes-Bug: #1243878 ecd1eb0e58d602b 5ba6ccbe263
Change-Id: If68f0b508fbea4