mirror of
https://github.com/distribution/distribution.git
synced 2025-08-19 23:38:13 +00:00
flyby: set ContentLength on GetObjectOutput also
This commit is contained in:
parent
a8c352063e
commit
bdbf05f6f8
@ -599,6 +599,10 @@ var setContentLength = request.NamedHandler{
|
||||
if r.HTTPResponse.ContentLength > 0 {
|
||||
v.SetContentLength(r.HTTPResponse.ContentLength)
|
||||
}
|
||||
case *s3.GetObjectOutput:
|
||||
if r.HTTPResponse.ContentLength > 0 {
|
||||
v.SetContentLength(r.HTTPResponse.ContentLength)
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user