headers do not work
Roman Arutyunyan
arut at nginx.com
Fri Apr 26 12:20:18 UTC 2024
Hi,
> On 25 Apr 2024, at 8:10 AM, Saint Michael <venefax at gmail.com> wrote:
>
> I keep getting this error
> *356 client sent invalid header line:
> "Finagle-Ctx-com.twitter.finagle.Retries: 0" while reading client
> request headers, and twitter cannot read my twitter-card
> yet, I do have
> underscores_in_headers on;
> ignore_invalid_headers on;
> in the http{} block
> How do I force nginx to disregard any illegal headers?
What exactly do you mean by disregard?
Do you want nginx to skip them or allow them to pass?
The "ignore_invalid_headers on" directive (which is also the default) explicitly enables skipping them, and this fact is reported in log.
Turn it off and those characters (dot in your case) will pass.
---
Roman Arutyunyan
arut at nginx.com
More information about the nginx
mailing list