From 16f086a0ec1e6158375ab34eb9c716a3f99b26f5 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Sun, 23 Oct 2016 16:05:45 +0200 Subject: [PATCH] registry/client: set Accept: identity header when getting layers Signed-off-by: Antonio Murdaca --- registry/client/transport/http_reader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/registry/client/transport/http_reader.go b/registry/client/transport/http_reader.go index e1b17a03a..e5ff09d75 100644 --- a/registry/client/transport/http_reader.go +++ b/registry/client/transport/http_reader.go @@ -181,6 +181,7 @@ func (hrs *httpReadSeeker) reader() (io.Reader, error) { // context.GetLogger(hrs.context).Infof("Range: %s", req.Header.Get("Range")) } + req.Header.Add("Accept-Encoding", "identity") resp, err := hrs.client.Do(req) if err != nil { return nil, err