2ec0471bb5
Client attempts to parse the body of every error it receives as JSON
regardless of the content-type. This commit rectifies by only parsing
he error body as JSON if the Content-Type header is set to
either "application/json" or "application/vnd.api+json".
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
auth | ||
transport | ||
blob_writer.go | ||
blob_writer_test.go | ||
errors.go | ||
errors_test.go | ||
repository.go | ||
repository_test.go |