Closed
Description
I have an application that sends HTTP requests via HttpClient from an Asp.NET Core project. For unknown reasons, all sent requests seem to have a Request-Id
HTTP header. I'm not able to repro this in a regular console application. The docs don't have any information on disabling it.
They seem to be added by the framework https://github.com/dotnet/runtime/search?q=RequestIdHeaderName&unscoped_q=RequestIdHeaderName .
- Is there a temporary fix for this issue?
- What is the right way to fix this issue in the long-term?
- Can we treat changes to the default HTTP headers sent as breaking changes? Issues like HttpRequestMessage does not respect TryAddWithoutValidation #35335 and this silently cause hard-to-debug issues.