From 2e90ff9caea0e767e5c7164a32004aeb56f6c18a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 25 Apr 2018 16:06:14 +0200 Subject: [PATCH] [gwstester] clean --- cmd/gwstester/tester.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/gwstester/tester.go b/cmd/gwstester/tester.go index c4a3c23..733469d 100644 --- a/cmd/gwstester/tester.go +++ b/cmd/gwstester/tester.go @@ -1,7 +1,6 @@ package main import ( - "bufio" "fmt" "net" "os" @@ -44,15 +43,13 @@ func manageClient(sock net.Conn) { for { - reader := bufio.NewReader(sock) - - _, err := request.Parse(reader) + req, err := request.Build(sock) if err != nil { panic(err) } + fmt.Printf("Upgrade Request: %v\n", req) break; - // sock.Write([]byte("coucou")) }