Merge pull request #2015 from runcom/accept-identity-get-layer

registry/client: set Accept: identity header when getting layers
This commit is contained in:
Stephen Day 2016-10-25 17:46:27 -07:00 committed by GitHub
commit fbb70dc3a1

View file

@ -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