From 9c04d0b30af71e66c2a181879a00405c8de9f451 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 20 Oct 2022 14:28:39 +0200 Subject: [PATCH] Revert "registry/client: set Accept: identity header when getting layers" This reverts commit 16f086a0ec1e6158375ab34eb9c716a3f99b26f5. Signed-off-by: Nicolas De Loof --- registry/client/transport/http_reader.go | 1 - 1 file changed, 1 deletion(-) diff --git a/registry/client/transport/http_reader.go b/registry/client/transport/http_reader.go index 0f8194fe..f5119c23 100644 --- a/registry/client/transport/http_reader.go +++ b/registry/client/transport/http_reader.go @@ -183,7 +183,6 @@ 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