This fixes the proxy for Safari which fails with a cryptic Invalid UTF-8 sequence in header value error when the upgrade request contains a header with an empty Value e.g. Set-Cookie:
I also removed the http.CanonicalHeaderKey function call which is not needed for Header.Get
This fixes the proxy for Safari which fails with a cryptic
Invalid UTF-8 sequence in header value
error when the upgrade request contains a header with an empty Value e.g.Set-Cookie:
I also removed the
http.CanonicalHeaderKey
function call which is not needed forHeader.Get