Skip to content

Commit

Permalink
Set X-Forwarded-Proto
Browse files Browse the repository at this point in the history
  • Loading branch information
xkr47 committed Feb 9, 2016
1 parent 78d2326 commit 95f9596
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/org/otherone/vhostproxy/vertx/run.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ class ProxyService(HttpClient client, Boolean isTls, Vertx myVertx) {
creqh.set("Host", nextHop.hostHeader);
creqh.set("X-Host", origHost);
creqh.set("X-Forwarded-For", chost);
creqh.set("X-Forwarded-Proto", isTls then "https" else "http");
value transferEncoding = sreqh.get(Names.\iTRANSFER_ENCODING);
if (exists transferEncoding, transferEncoding.contains("chunked")) {
creq.setChunked(true);
Expand Down

0 comments on commit 95f9596

Please sign in to comment.