Don't use */* in accept header
The response is returned as text/plain in case of exception. Pecan 1.4 uses accept header to decide the response content type. This also affected gnocciclient and has been fixed there. https://github.com/gnocchixyz/python-gnocchiclient/pull/110 Change-Id: Ia46259e960493c92a6701a165518ef87b03c5c2d
This commit is contained in:
parent
7153763b9e
commit
dff4f153d4
|
@ -18,7 +18,7 @@ import six
|
|||
|
||||
class Manager(object):
|
||||
DEFAULT_HEADERS = {
|
||||
"Accept": "application/json, */*",
|
||||
"Accept": "application/json",
|
||||
}
|
||||
|
||||
def __init__(self, client):
|
||||
|
|
Loading…
Reference in New Issue