Hi Lukas,

Thanks for the patch — I tried it and I think it does help, but now Safari 
barfs with a different error instead:

        [Error] WebSocket connection to 
'wss://myusername:mypassword@localhost:8080/' failed: Unexpected response code: 
401

I suspect this next issue may lie more within Safari than within HAProxy — in 
particular, it seems Safari may not currently support handling a 401 response 
for a WebSocket connection.  That said, if you have any further suggestions, 
I’d welcome hearing them.  :)

Jeremy

> On Oct 11, 2018, at 3:12 AM, Lukas Tribus <[email protected]> wrote:
> 
> Hello Jeremy,
> 
> 
> On Thu, 11 Oct 2018 at 03:04, Jeremy Friesner <[email protected]> wrote:
>> 
>>        [Error] WebSocket connection to 'wss://localhost:8080/' failed: 
>> Invalid HTTP version string: HTTP/1.0
> 
> Sounds like it doesn't like the 401 response in HTTP/1.0. Can you try
> the attached patch (which upgrades 401 and 407 to HTTP/1.1)?
> 
> 
> Thanks,
> Lukas
> <hap18-401-http11.diff>


Reply via email to