net/tshttpproxy: move the TS_DEBUG_FAKE_PROXY_AUTH knob up a level

This commit is contained in:
Brad Fitzpatrick
2020-08-27 08:14:03 -07:00
parent aa1da24f18
commit 2bac125cad
2 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,6 @@ import (
"log"
"net/http"
"net/url"
"os"
)
func init() {
@@ -25,9 +24,6 @@ func init() {
log.Printf("failed to get proxy Auth header for %v; ignoring: %v", proxyURL, err)
return nil, nil
}
if fake := os.Getenv("TS_DEBUG_FAKE_PROXY_AUTH"); fake != "" {
v = fake
}
if v == "" {
return nil, nil
}