twitchax / AspNetCore.Proxy

ASP.NET Core Proxies made easy.
MIT License
505 stars 80 forks source link

Proxy Http Reason Phrase to Avoid Unconscious Incompatibilities. #106

Closed xinlifoobar closed 8 months ago

xinlifoobar commented 1 year ago

Some backend services (e.g., Azure Relay) are customizing HTTP reason phrases. This should be considered as misuse of the HTTP protocol but that info may need to be kept at the proxying time to keep the integrity of the origin messages.

An example response:

401 MissingToken: Relay security token is required. TrackingId:988e8147-c5ed-473c-a679-fb2c0d400ee4_G11, SystemTracker:hdirelay-uswe-d4c1893d-0.servicebus.windows.net:a21a0c87558b411bb098f8a8c7cad92a, Timestamp:2023-03-07T03:52:29
xinlifoobar commented 1 year ago

@twitchax please review this.

twitchax commented 1 year ago

Hey, sorry, I was out of town, and missed this. Will take a look.