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:
Dan Radez 2020-08-24 09:01:41 -04:00
parent 7153763b9e
commit dff4f153d4
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ import six
class Manager(object): class Manager(object):
DEFAULT_HEADERS = { DEFAULT_HEADERS = {
"Accept": "application/json, */*", "Accept": "application/json",
} }
def __init__(self, client): def __init__(self, client):