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.
1 parent 4debb74 commit e3149c7Copy full SHA for e3149c7
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