My apologies - I’m probably confusing things. To your credit, as this is one of the few (if not only directly visible) examples of a basic C# reverse-proxy ( ), I was suggesting the two additions, to help it lean to a more generic audience/example, as I was conscious that there is probably a lot of people like me, who are interested in a more foundational template that could apply in more scenarios (if not more quickly grow into any usage). I might not be aware/have included some technicality, but I found that with these two additions the sample was working fairly well for me (for .NET 6 at least).
I.E. (For .NET 6 at least) I seemed to need to manually copy the content length & type, as well as to capture the non-Content headers (such as the ‘Authorization’ header being a typical/commonplace example).
(Hopefully the fact that I’ve recorded the possible need for these two changes might be good enough for others who want to try the sample against .NET 6 with any & all usages - it might just work better ‘out of the box’/with no immediate/additional tweaks; possibly more generic/immediate fun with least investment/code-change.)