Skip to content

Commit

Permalink
don't try to respond with bad gateway after OK closes #2977
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Aug 18, 2015
1 parent 3e7c332 commit 43d1ec3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/github.com/getlantern/flashlight/client/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ func (client *Client) intercept(resp http.ResponseWriter, req *http.Request) {
} else {
connOut, err = detour.Dialer(d)("tcp", addr)
}
if err != nil {
respondBadGateway(clientConn, fmt.Sprintf("Unable to handle CONNECT request: %s", err))
return
}

if <-success {
// Pipe data between the client and the proxy.
Expand Down

0 comments on commit 43d1ec3

Please sign in to comment.