Authorization error not translated in Accept-Language

asked 2015-10-05 07:40:30 -0500

lafada gravatar image

I am trying to use Accept-Language header to get data in specific language.

When I give wrong token, it return data in english only.

curl -i --insecure -X GET https://localhost:8774/v2/0ad5f13fcf0549a1b99a659a766a78c8/servers/detail -H "Accept: application/json" -H "X-Auth-Token: f122ca695d1d43d3a46c7c67b2b" -H "Accept-Language: zh-CN"
HTTP/1.1 401 Unauthorized
Www-Authenticate: Keystone uri='http://localhost:5000/v2.0'
Content-Type: text/plain
X-Compute-Request-Id: req-176940b4-9baf-4cd7-80d2-a20bce654b2e
Content-Length: 23
Date: Mon, 05 Oct 2015 12:33:48 GMT

Authentication required

Last message Authentication required is in English, it should be in Accept-Language.

edit retag flag offensive close merge delete