kopia lustrzana https://github.com/gaul/s3proxy
Remove newlines which the AWS SDK rejects
rodzic
65074b6338
commit
21a708a38d
|
@ -257,7 +257,7 @@ final class S3ProxyHandler extends AbstractHandler {
|
||||||
" <Permission>FULL_CONTROL</Permission>\r\n" +
|
" <Permission>FULL_CONTROL</Permission>\r\n" +
|
||||||
" </Grant>\r\n" +
|
" </Grant>\r\n" +
|
||||||
" </AccessControlList>\r\n" +
|
" </AccessControlList>\r\n" +
|
||||||
"</AccessControlPolicy>\r\n");
|
"</AccessControlPolicy>");
|
||||||
writer.flush();
|
writer.flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -662,7 +662,7 @@ final class S3ProxyHandler extends AbstractHandler {
|
||||||
writer.write(" <ETag>"");
|
writer.write(" <ETag>"");
|
||||||
writer.write(eTag);
|
writer.write(eTag);
|
||||||
writer.write(""</ETag>\r\n");
|
writer.write(""</ETag>\r\n");
|
||||||
writer.write("</CopyObjectResult>\r\n");
|
writer.write("</CopyObjectResult>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -841,7 +841,7 @@ final class S3ProxyHandler extends AbstractHandler {
|
||||||
}
|
}
|
||||||
writer.write(" <RequestId>" + FAKE_REQUEST_ID +
|
writer.write(" <RequestId>" + FAKE_REQUEST_ID +
|
||||||
"</RequestId>\r\n" +
|
"</RequestId>\r\n" +
|
||||||
"</Error>\r\n");
|
"</Error>");
|
||||||
writer.flush();
|
writer.flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue