Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ensure the magic jvm system property is set in the most targetted way

  • Loading branch information...
commit eb79e9883e0509ef9275d9e068630efa33dfdb72 1 parent e176b14
@scarytom scarytom authored
View
4 src/main/java/com/timgroup/blondin/proxy/ProxyingHandler.java
@@ -25,6 +25,10 @@
private final String targetHost;
private final int targetPort;
+ static {
+ System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
+ }
+
public static Container create(Monitor monitor, String targetHost, int targetPort) {
return new DefensiveHandler(monitor, new ProxyingHandler(monitor, targetHost, targetPort));
}
View
4 src/main/java/com/timgroup/blondin/server/BlondinServer.java
@@ -36,10 +36,6 @@
}
};
- static {
- System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
- }
-
public BlondinServer(Monitor monitor, int blondinPort, String targetHost, int targetPort,
URL expensiveResourcesUrl, int throttleSize) throws IOException {
this.monitor = monitor;
Please sign in to comment.
Something went wrong with that request. Please try again.