Files
rdpgw/cmd/rdpgw
Darkar25 4d58a9eb97 Fix protocol fallback (#172)
* Fix protocol fallback

* Use token-aware header matching, drop dead fallback log

Connection is a list header; plain equality misses legitimate
"keep-alive, Upgrade" clients. Switch to case-insensitive token
matching for the Connection/Upgrade checks.

Remove the "falling back to old protocol" log on upgrade failure.
upgrader.Upgrade commits an HTTP error response before returning, so
the follow-up legacy path cannot produce a coherent reply. The real
fallback happens at the header pre-check for clients and reverse
proxies that strip the upgrade tokens.

Add tests for the header helper and RDGOUT routing.
2026-04-23 19:35:16 +02:00
..
2025-09-18 22:36:04 +02:00
2026-04-23 19:35:16 +02:00
2023-05-15 10:43:38 +02:00
2025-09-25 15:33:46 +02:00
2025-09-25 15:33:46 +02:00