Welcome! Log In Create A New Profile

Advanced

NGINX returns 502 when Proxied Response Header Name Contains Whitespace

Posted by rumpelstilskin 
NGINX returns 502 when Proxied Response Header Name Contains Whitespace
June 08, 2023 07:21PM
Hi,
NGINX is returning an HTTP 502 when the Upstream Header Name contains whitespace. The following error message is recording in the error log.
upstream sent invalid header: "IIS\x20..." while reading response header from upstream

The request is returned successfully from the Upstream Server with the headers listed below.
Cache-Control:
Content-Length:
Content-Type:
Server:
X-AspNet-Version:
Set-Cookie:
X-Powered-By:
IIS SERVER:
Date:

I suspect "IIS SERVER:" header is the culprit. Would anyone know how to Ignore or correct the problem? Apologies is this is duplicate but I've not been able to find a resolution.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready