From cc2a8ab008ad11846da41e2b8cf687fbcbc50cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=90=D9=8A=D8=B2=D9=8E=D8=A7=D9=86=D9=8F=20=D8=A7?= =?UTF-8?q?=D9=84=D9=92=D8=AF=D9=91=D9=90=D9=8A=D9=86=D9=92=20=D8=B9=D9=8E?= =?UTF-8?q?=D8=A8=D9=92=D8=AF=D9=8F=20=D8=B0=D9=90=D9=8A=D9=92=20=D8=A7?= =?UTF-8?q?=D9=84=D9=92=D8=AC=D9=8E=D9=84=D9=8E=D8=A7=D9=84=D9=90=20=D9=88?= =?UTF-8?q?=D9=8E=20=D8=A7=D9=84=D9=92=D8=A5=D9=90=D9=83=D9=92=D8=B1=D9=8E?= =?UTF-8?q?=D8=A7=D9=85=D9=90?= Date: Thu, 11 Jul 2019 14:50:31 +0100 Subject: [PATCH] Fix duplicate header --- bootstrap/wafMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/wafMiddleware.php b/bootstrap/wafMiddleware.php index dd4f08b..a7beeb8 100644 --- a/bootstrap/wafMiddleware.php +++ b/bootstrap/wafMiddleware.php @@ -26,7 +26,7 @@ // Add headers to request $request = $request->withAddedHeader('X-WAF-KEY', getenv('WAF_KEY')); $request = $request->withAddedHeader('User-Agent', 'VesicaWAF/1.0 '); - $request = $request->withAddedHeader('X-LOAD-BALANCER', $request->getHeader('X-LOAD-BALANCER')); + $request = $request->withHeader('X-LOAD-BALANCER', $request->getHeader('X-LOAD-BALANCER')); $wafNamespace = getenv('WAF_PROXY_NAMESPACE'); $logger = new Logger($wafNamespace);