diff --git a/source/org/otherone/vhostproxy/vertx/run.ceylon b/source/org/otherone/vhostproxy/vertx/run.ceylon index 8aa8729..00b49d6 100644 --- a/source/org/otherone/vhostproxy/vertx/run.ceylon +++ b/source/org/otherone/vhostproxy/vertx/run.ceylon @@ -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);