1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #3157 ZONE_NAME header gets stripped by passenger (#3160)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo 2019-04-01 18:53:09 +02:00 committed by Tino Vázquez
parent d177039e23
commit 32bde0df44
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ define(function(require) {
url: 'config',
type: "GET",
headers: {
"ZONE_NAME" : this.id
"ZONE-NAME" : this.id
},
dataType: "json",
success: function() {

View File

@ -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