distribution/registry/client
Milos Gajdos 2ec0471bb5
Dont parse errors as JSON unless Content-Type is set to JSON
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 45b7b9cec3)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-08 14:54:21 +02:00
..
auth Fix gosimple checks 2021-03-23 21:03:20 +08:00
transport Revert "registry/client: set Accept: identity header when getting layers" 2023-05-10 23:00:15 +02:00
blob_writer.go context: remove definition of Context 2017-08-11 15:53:31 -07:00
blob_writer_test.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-09-08 14:54:21 +02:00
errors.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-09-08 14:54:21 +02:00
errors_test.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-09-08 14:54:21 +02:00
repository.go bump up golang version 2023-05-09 10:59:43 +02:00
repository_test.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-09-08 14:54:21 +02:00