diff --git a/internal/http/upgrade/response/public.go b/internal/http/upgrade/response/public.go index e644abb..462a17f 100644 --- a/internal/http/upgrade/response/public.go +++ b/internal/http/upgrade/response/public.go @@ -54,14 +54,14 @@ func (r T) Send(w io.Writer) (int, error) { optionalProtocol = fmt.Sprintf("Sec-WebSocket-Protocol: %s\r\n", r.protocol) } - headers := fmt.Sprintf("Upgrade: websocket\t\nConnection: Upgrade\r\nSec-WebSocket-Version: %d\r\n%s", WSVersion, optionalProtocol) + headers := fmt.Sprintf("Upgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Version: %d\r\n%s", WSVersion, optionalProtocol) if r.accept != nil { headers = fmt.Sprintf("%sSec-WebSocket-Accept: %s\r\n", headers, r.accept) } headers = fmt.Sprintf("%s\r\n", headers) /* (3) Build all */ - raw := []byte(fmt.Sprintf("%s%s\r\n", responseLine, headers)) + raw := []byte(fmt.Sprintf("%s%s", responseLine, headers)) /* (4) Write */ written, err := w.Write(raw)