[gwstester] clean
This commit is contained in:
parent
be8bfa012e
commit
2e90ff9cae
|
@ -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"))
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue