You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A server MUST NOT send a Transfer-Encoding header field in any
response with a status code of 1xx (Informational) or 204 (No
Content). A server MUST NOT send a Transfer-Encoding header field in
any 2xx (Successful) response to a CONNECT request (Section 4.3.6 of
[RFC7231]).
So I think the easiest case is to just follow what @mtojek suggested.
Hi,
nginx warns about empty responses (HTTP 204) with a
Content-Encoding
header set (based on user request headerAccept-Encoding
).I propose to refactor a bit
gzipResponseWriter
to be sending mentioned header if only HTTP response body is not empty.Will it be possible, what do you think @vishr ?
Best regards,
Marcin
The text was updated successfully, but these errors were encountered: