From dff4f153d442e442276eea0d82f87a5d4cb692fe Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Mon, 24 Aug 2020 09:01:41 -0400 Subject: [PATCH] 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 --- aodhclient/v2/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aodhclient/v2/base.py b/aodhclient/v2/base.py index 2e863d9..398b30b 100644 --- a/aodhclient/v2/base.py +++ b/aodhclient/v2/base.py @@ -18,7 +18,7 @@ import six class Manager(object): DEFAULT_HEADERS = { - "Accept": "application/json, */*", + "Accept": "application/json", } def __init__(self, client):