Browse Source

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
tags/2.1.1^0
Dan Radez 1 month ago
parent
commit
dff4f153d4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      aodhclient/v2/base.py

+ 1
- 1
aodhclient/v2/base.py View File

@@ -18,7 +18,7 @@ import six

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

def __init__(self, client):


Loading…
Cancel
Save