keystonemiddleware/keystonemiddleware
Julien Danjou 20fb1dbe5a auth_token: set correct charset when replying with 401
The Content-Type header does not contain the charset used for the
message. It's now required by webob:

  File "/home/jenkins/workspace/gate-gnocchi-tox-db-py35-mysql-ubuntu-xenial/.tox/py35-mysql/lib/python3.5/site-packages/keystonemiddleware/auth_token/__init__.py", line 331, in __call__
    response = self.process_request(req)
  File "/home/jenkins/workspace/gate-gnocchi-tox-db-py35-mysql-ubuntu-xenial/.tox/py35-mysql/lib/python3.5/site-packages/keystonemiddleware/auth_token/__init__.py", line 650, in process_request
    content_type='application/json')
  File "/home/jenkins/workspace/gate-gnocchi-tox-db-py35-mysql-ubuntu-xenial/.tox/py35-mysql/lib/python3.5/site-packages/webob/exc.py", line 268, in __init__'
    **kw)
  File "/home/jenkins/workspace/gate-gnocchi-tox-db-py35-mysql-ubuntu-xenial/.tox/py35-mysql/lib/python3.5/site-packages/webob/response.py", line 310, in __init__'
    "You cannot set the body to a text value without a "
TypeError: You cannot set the body to a text value without a charset

Change-Id: Ia6c667c9afcba0811f51f3e50f34de05310d1433
2016-12-28 16:52:01 +01:00
..
_common Pop oslo_config_config before doing paste convert 2016-06-24 15:12:47 +10:00
audit Use jsonutils instead of ast for loading the service catalog 2016-07-09 02:34:20 +00:00
auth_token auth_token: set correct charset when replying with 401 2016-12-28 16:52:01 +01:00
echo Fix D204 PEP257 violation and enable D301 and D209 2016-05-06 16:36:15 +00:00
tests Pass ?allow_expired 2016-12-15 16:15:35 +00:00
__init__.py Moving middleware to new location 2014-06-19 15:50:41 -07:00
ec2_token.py Fix D200: One-line docstring should fit on one line with quotes (PEP257) 2016-05-17 00:23:48 +00:00
exceptions.py Create a Config object 2016-06-10 18:21:56 +00:00
fixture.py Specify that unknown arguments can be passed to fetch_token 2016-10-10 18:44:46 +11:00
i18n.py Drop use of 'oslo' namespace package 2015-04-28 19:37:43 +00:00
opts.py Move auth token opts calculation into auth_token 2016-06-13 14:03:23 -03:00
s3_token.py Use method split_path from oslo.utils 2016-05-31 12:06:26 +00:00