Why does ASP.NET Web API incoming request have the br encoding removed from the header

Peterjc 81 Reputation points
2023-03-30T23:36:12.81+00:00

Hi, I am sending a request (in this case happens to be via an Angular client - but I think that is irrelevant) to my ASP.NET Web API server (running on .NET Framework 4.8). Both client and server are running on my Windows 11 dev machine.

When I look at this in the browser (Chrome) devtools, it has Accept-Encoding: gzip, deflate, br

2023-03-31_07-33-40

However, if I put a break point in my server's controller, and look at it's Request object in the debugger, the br seems to be gone

2023-03-31_07-34-59

I was looking at adding a Brotli compression for my responses, but if the header is not asking for it, then no point.

Does anyone know why this is missing form the header once it gets to the server?

Thanks in advance

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,243 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
292 questions
{count} votes