Some proxies (like Træfik) send a 301 redirect when requesting ws://hostname.fqdn//ws, redirecting to ws://hostname.fqdn/ws. For a weird reason (I don't know the real explanation behind that behavior), Firefox (at least) fails to follow the 301 redirect to the web-socket endpoint. So here's a little patch which avoid putting a double / in the web-socket endpoint URL.
Some proxies (like Træfik) send a 301 redirect when requesting
ws://hostname.fqdn//ws
, redirecting tows://hostname.fqdn/ws
. For a weird reason (I don't know the real explanation behind that behavior), Firefox (at least) fails to follow the 301 redirect to the web-socket endpoint. So here's a little patch which avoid putting a double/
in the web-socket endpoint URL.