From 95f959627862f00ea0af31550dac9632092754be Mon Sep 17 00:00:00 2001 From: Jonas Berlin Date: Tue, 9 Feb 2016 08:55:41 +0200 Subject: [PATCH] Set X-Forwarded-Proto --- source/org/otherone/vhostproxy/vertx/run.ceylon | 1 + 1 file changed, 1 insertion(+) 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);