Skip to content

Commit

Permalink
Don't use '*/*' in accept header
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rabi committed Aug 19, 2020
1 parent f519a9d commit 0c8e21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnocchiclient/v1/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class Manager(object):
DEFAULT_HEADERS = {
"Accept": "application/json, */*",
"Accept": "application/json",
}

def __init__(self, client):
Expand Down

0 comments on commit 0c8e21b

Please sign in to comment.