From 57440c946404470dd03dfb23cce9d26505b307b1 Mon Sep 17 00:00:00 2001 From: minherz Date: Fri, 1 Feb 2019 22:11:09 +0200 Subject: [PATCH] fix issue with failing e2e tests --- rootfs/etc/nginx/lua/balancer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/nginx/lua/balancer.lua b/rootfs/etc/nginx/lua/balancer.lua index 05650716d..f3b96f9d1 100644 --- a/rootfs/etc/nginx/lua/balancer.lua +++ b/rootfs/etc/nginx/lua/balancer.lua @@ -160,7 +160,7 @@ local function route_to_alternative_balancer(balancer) local target_header = util.replace_special_char(traffic_shaping_policy.header, "-", "_") local header = ngx.var["http_" .. target_header] if header then - if traffic_shaping_policy.headerValue then + if traffic_shaping_policy.headerValue and #traffic_shaping_policy.headerValue > 0 then if traffic_shaping_policy.headerValue == header then return true end