Skip to content

Commit

Permalink
Accept HTTP/1.0 when authenticating to a proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jagotu committed Feb 9, 2022
1 parent f16f0fe commit e835d3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ func connectviaproxy(proxyaddr string, connectaddr string) net.Conn {
//disable socket read timeouts
conn.SetReadDeadline(time.Now().Add(100 * time.Hour))

if strings.Contains(status, "HTTP/1.1 200 ") {
if (strings.Contains(status, "HTTP/1.1 200 ")) ||
(strings.Contains(status, "HTTP/1.0 200 ")) {
log.Print("Connected via proxy")
return conn
}
Expand Down

0 comments on commit e835d3e

Please sign in to comment.