Skip to content

Commit

Permalink
registry/client: set Accept: identity header when getting layers
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
  • Loading branch information
runcom committed Oct 25, 2016
1 parent 8234784 commit 16f086a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions registry/client/transport/http_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16f086a

Please sign in to comment.