Explorar o código

fix HTTP proxy OK response

Valture %!s(int64=8) %!d(string=hai) anos
pai
achega
2058920d95
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      proxy/http/server.go

+ 1 - 1
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)
 	}