So an old program (windows exe) does a request to our site with this header:
"Accept-Charset[space]:ISO-8859-1"
And this throws a 400 Bad Request error. We cannot change that and remove the space (which would solve the nightmare) because that exe is already installed in a ton of computers.
This was not causing any issue when the web was a 20 year old ASP Web Forms, but now, the new NET 6 MVC doesn't like it.
The IAsyncActionFilter filter is not a solution as the BAD Request is returned before the query can even be routed.
Do you have any clue on how to parse that request removing the space or any other magic that can solve this?
Thank you!