From e9b66b87b7a9a830b59ad6496329637d36af6ef2 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 2 May 2018 22:36:59 +0200 Subject: [PATCH] BIGFIX (fuck it) --- internal/http/upgrade/response/public.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)