Merge pull request #525 from valture/master

fix HTTP proxy OK response
pull/651/head
DarienRaymond 2017-08-07 12:29:35 +02:00 committed by GitHub
commit 79e7d46063
1 changed files with 1 additions and 1 deletions

View File

@ -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 { 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 { if err != nil {
return newError("failed to write back OK response").Base(err) return newError("failed to write back OK response").Base(err)
} }