forked from TrueCloudLab/distribution
45b7b9cec3
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> |
||
---|---|---|
.. | ||
auth | ||
transport | ||
blob_writer.go | ||
blob_writer_test.go | ||
errors.go | ||
errors_test.go | ||
repository.go | ||
repository_test.go |