“Accept” in request header is overwritten by default content type without feedback
Bug #1480036 reported by
Lin Yang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
Medium
|
Lin Yang |
Bug Description
When user specify one expected response content type that is not supported, it will be replaced with default type application/json without any feedback. In below case, a unsupported type "text/h323'' is specified, however, it response in application/json as usual.
How to reproduce:
$ curl -i -s -X GET -H "X-Auth-
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 20
Date: Fri, 31 Jul 2015 02:55:29 GMT
{"environments": []}
Expected behaviour:
One clear message tells user this type is unsupported.
Changed in murano: | |
assignee: | nobody → Lin Yang (lin-a-yang) |
Changed in murano: | |
importance: | Undecided → Medium |
milestone: | none → liberty-3 |
Changed in murano: | |
status: | Fix Committed → Fix Released |
Changed in murano: | |
milestone: | liberty-3 → 1.0.0 |
Changed in murano: | |
milestone: | 1.0.0 → 1.0.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/207705
Review: https:/