Skip to content

Commit

Permalink
fix HTTP proxy OK response
Browse files Browse the repository at this point in the history
  • Loading branch information
valture committed Aug 3, 2017
1 parent 21284fb commit 2058920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2058920

Please sign in to comment.