distribution/registry/client
Milos Gajdos 45b7b9cec3
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>
2023-08-28 12:35:33 +01:00
..
auth Enable bodyclose linter 2023-08-19 09:45:44 +01:00
transport Support ztsd compression as Content-Encoding 2023-06-01 14:06:25 +01:00
blob_writer.go Enable bodyclose linter 2023-08-19 09:45:44 +01:00
blob_writer_test.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-08-28 12:35:33 +01:00
errors.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-08-28 12:35:33 +01:00
errors_test.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-08-28 12:35:33 +01:00
repository.go Enable bodyclose linter 2023-08-19 09:45:44 +01:00
repository_test.go Dont parse errors as JSON unless Content-Type is set to JSON 2023-08-28 12:35:33 +01:00