We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41ad070 + 0393789 commit 705c423Copy full SHA for 705c423
modules/proxy/proxy.go
@@ -56,7 +56,9 @@ func Match(u string) bool {
56
// Proxy returns the system proxy
57
func Proxy() func(req *http.Request) (*url.URL, error) {
58
if !setting.Proxy.Enabled {
59
- return nil
+ return func(req *http.Request) (*url.URL, error) {
60
+ return nil, nil
61
+ }
62
}
63
if setting.Proxy.ProxyURL == "" {
64
return http.ProxyFromEnvironment
0 commit comments