mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-05-12 19:30:04 +00:00
* 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.