From 0c8e21bb16b1ca7ac9a35170097601ff2056840d Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Sat, 15 Aug 2020 14:58:11 +0530 Subject: [PATCH] Don't use '*/*' in accept header Pecan 1.4 uses accept header to decide the response content type. Let's not use '*/*" in accept header as it returns text/plain in case of errors. --- gnocchiclient/v1/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnocchiclient/v1/base.py b/gnocchiclient/v1/base.py index 2e863d9..398b30b 100644 --- a/gnocchiclient/v1/base.py +++ b/gnocchiclient/v1/base.py @@ -18,7 +18,7 @@ class Manager(object): DEFAULT_HEADERS = { - "Accept": "application/json, */*", + "Accept": "application/json", } def __init__(self, client):