kopia lustrzana https://github.com/gaul/s3proxy
Strip leading / from x-amz-copy-source header
Previously S3Proxy did not update copySourceHeader. Fixes #10.pull/16/head
rodzic
e59e2660dd
commit
73d647f46e
|
@ -553,7 +553,7 @@ final class S3ProxyHandler extends AbstractHandler {
|
|||
String copySourceHeader = request.getHeader("x-amz-copy-source");
|
||||
if (copySourceHeader.startsWith("/")) {
|
||||
// Some clients like boto do not include the leading slash
|
||||
copySourceHeader.substring(1);
|
||||
copySourceHeader = copySourceHeader.substring(1);
|
||||
}
|
||||
String[] path = copySourceHeader.split("/", 2);
|
||||
String sourceContainerName = path[0];
|
||||
|
|
Ładowanie…
Reference in New Issue