From 2058920d95244bd469c1fb8246e9abcc7affec1c Mon Sep 17 00:00:00 2001 From: Valture Date: Thu, 3 Aug 2017 07:55:38 +0000 Subject: [PATCH] fix HTTP proxy OK response --- proxy/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/server.go b/proxy/http/server.go index fa61d979..9b7ba22d 100644 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -122,7 +122,7 @@ Start: } func (s *Server) handleConnect(ctx context.Context, request *http.Request, reader io.Reader, writer io.Writer, dest v2net.Destination, dispatcher dispatcher.Interface) error { - _, err := writer.Write([]byte("HTTP/1.1 200 Connection established\n\n")) + _, err := writer.Write([]byte("HTTP/1.1 200 Connection established\r\n\r\n")) if err != nil { return newError("failed to write back OK response").Base(err) }