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=414449
pull/16/head
Andrew Gaul 2014-08-13 18:14:06 -07:00
rodzic 874766eade
commit b47e8387fd
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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);