gateway icon indicating copy to clipboard operation
gateway copied to clipboard

Enable gateway to work with Application Load Balancer with Multi Value Headers enabled

Open ec-kelsey opened this issue 5 years ago • 2 comments

We have been using gateway with go-gin and recently swapped from using an API Gateway to an ALB for routing, which worked fine. However, when trying to turn multi value headers on the site broke when run through gateway. I have discovered that the multi value headers were being set with lower case header names, which was not being picked up using Header.Get, and that the ALB expects all header values to be returned in the multi value headers when using this mode.

My testing suggests that this should not break anything when running without multi value headers enabled as before.

ec-kelsey avatar Feb 02 '21 03:02 ec-kelsey

Tests have failed due to output being changed slightly, but it looks like that when multi value headers are not being used the contents should be ignored.

ec-kelsey avatar Feb 02 '21 03:02 ec-kelsey

I'd like to add a +1 to this PR, we are facing the same issue and it is causing this version of apex gateway to unfortunately be unusable for us and we have had to downgrade

ben-anscombe avatar May 18 '21 10:05 ben-anscombe