kopia lustrzana https://github.com/gaul/s3proxy
Use decoded content length when provided
Previously S3Proxy provided an incorrect Content-Length header when using V4 signing which providers rejected.pull/124/head
rodzic
291db19898
commit
cea4a42922
|
@ -1501,7 +1501,7 @@ final class S3ProxyHandler extends AbstractHandler {
|
|||
BlobBuilder.PayloadBlobBuilder builder = blobStore
|
||||
.blobBuilder(blobName)
|
||||
.payload(is)
|
||||
.contentLength(request.getContentLength());
|
||||
.contentLength(contentLength);
|
||||
addContentMetdataFromHttpRequest(builder, request);
|
||||
if (contentMD5 != null) {
|
||||
builder = builder.contentMD5(contentMD5);
|
||||
|
|
Ładowanie…
Reference in New Issue