Skip to content

Commit

Permalink
Fix: disconnect normal proxy request
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Feb 21, 2019
1 parent c0bd82d commit 0492722
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 @@ -56,7 +56,7 @@ func (l *HttpListener) Address() string {
func handleConn(conn net.Conn) {
br := bufio.NewReader(conn)
request, err := http.ReadRequest(br)
if err != nil || !request.URL.IsAbs() {
if err != nil || request.URL.Host == "" {
conn.Close()
return
}
Expand Down

0 comments on commit 0492722

Please sign in to comment.