distribution/registry/client
a-palchikov 82609180a1 tag service: properly handle error responses on HEAD requests by (#1918)
* tag service: properly handle error responses on HEAD requests by
re-issuing requests as GET for proper error details.

Fixes #1911.

Signed-off-by: dmitri <deemok@gmail.com>

* Simplify handling of failing HEAD requests in TagService and
make a GET request for cases:
  - if the server does not handle HEAD
  - if the response was an error to get error details

Signed-off-by: dmitri <deemok@gmail.com>

* Add a missing http.Response.Body.Close call for the GET request.

Signed-off-by: dmitri <deemok@gmail.com>
2016-08-26 14:35:04 -07:00
..
auth Add support for using v2 ping challenges for v1 2016-07-12 17:15:56 -07:00
transport Fix some typos in comments and strings 2016-02-23 22:33:38 +01:00
blob_writer.go Adds new storagedriver.FileWriter interface 2016-03-08 16:37:44 -08:00
blob_writer_test.go Add ability to pass in substitution args into an Error 2015-07-15 11:02:10 -07:00
errors.go Merge pull request #1772 from runcom/go1.6const 2016-06-08 10:22:57 -07:00
errors_test.go Include status code in UnexpectedHTTPResponseError 2016-03-15 09:03:56 -07:00
repository.go tag service: properly handle error responses on HEAD requests by (#1918) 2016-08-26 14:35:04 -07:00
repository_test.go tag service: properly handle error responses on HEAD requests by (#1918) 2016-08-26 14:35:04 -07:00