kopia lustrzana https://github.com/gaul/s3proxy
Enable Jetty STRICT mode to get true header values
Previously Jetty rewrote header values such as the Content-Type, which broke signing with the AWS SDK. Reference: https://bugs.eclipse.org/bugs/show_bug.cgi?id=414449pull/16/head
rodzic
874766eade
commit
b47e8387fd
|
@ -48,6 +48,12 @@ public final class S3Proxy {
|
|||
|
||||
private final Server server;
|
||||
|
||||
static {
|
||||
// Prevent Jetty from rewriting headers:
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=414449
|
||||
System.setProperty("org.eclipse.jetty.http.HttpParser.STRICT", "true");
|
||||
}
|
||||
|
||||
public S3Proxy(BlobStore blobStore, URI endpoint, String identity,
|
||||
String credential) {
|
||||
Preconditions.checkNotNull(blobStore);
|
||||
|
|
Ładowanie…
Reference in New Issue