Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

try X-Forwarded-Host again

  • Loading branch information...
commit fea662d82ae46393c36d686e6d0599aa192c2bea 1 parent eb79e98
@scarytom scarytom authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/com/timgroup/blondin/proxy/ProxyingHandler.java
View
6 src/main/java/com/timgroup/blondin/proxy/ProxyingHandler.java
@@ -66,9 +66,9 @@ private void transferRequestHeaders(Request request, HttpURLConnection conn) {
final Joiner joiner = Joiner.on(",");
for (String headerName : request.getNames()) {
conn.setRequestProperty(headerName, joiner.join(request.getValues(headerName)));
-// if ("X-Forwarded-Host".equals(headerName)) {
-// conn.setRequestProperty("Host", joiner.join(request.getValues(headerName)));
-// }
+ if ("X-Forwarded-Host".equals(headerName)) {
+ conn.setRequestProperty("Host", joiner.join(request.getValues(headerName)));
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.