Skip to content

Commit

Permalink
Merge branch 'main' into no-thin-scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
techknowlogick committed Aug 19, 2021
2 parents 41ad070 + 0393789 commit 705c423
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ func Match(u string) bool {
// Proxy returns the system proxy
func Proxy() func(req *http.Request) (*url.URL, error) {
if !setting.Proxy.Enabled {
return nil
return func(req *http.Request) (*url.URL, error) {
return nil, nil
}
}
if setting.Proxy.ProxyURL == "" {
return http.ProxyFromEnvironment
Expand Down

0 comments on commit 705c423

Please sign in to comment.