From 32bde0df449693b72f8deb47afda21a7137f1699 Mon Sep 17 00:00:00 2001 From: Jorge Lobo <47326048+jloboescalona2@users.noreply.github.com> Date: Mon, 1 Apr 2019 18:53:09 +0200 Subject: [PATCH] B #3157 ZONE_NAME header gets stripped by passenger (#3160) Signed-off-by: Jorge Lobo --- src/sunstone/public/app/app.js | 2 +- src/sunstone/sunstone-server.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/public/app/app.js b/src/sunstone/public/app/app.js index dcd537d4c2..7502a1c8c3 100644 --- a/src/sunstone/public/app/app.js +++ b/src/sunstone/public/app/app.js @@ -243,7 +243,7 @@ define(function(require) { url: 'config', type: "GET", headers: { - "ZONE_NAME" : this.id + "ZONE-NAME" : this.id }, dataType: "json", success: function() { diff --git a/src/sunstone/sunstone-server.rb b/src/sunstone/sunstone-server.rb index 458a45d253..314f77141c 100755 --- a/src/sunstone/sunstone-server.rb +++ b/src/sunstone/sunstone-server.rb @@ -386,7 +386,7 @@ before do # Try with underscores if zone_name_header.nil? hpref = "HTTP_" - head_zone = "ZONE_NAME" + head_zone = "ZONE-NAME" zone_name_header = reqenv[head_zone] ? reqenv[head_zone] : reqenv[hpref+head_zone] end