diff options
author | mscherer <mscherer@users.noreply.github.com> | 2021-12-06 05:46:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 23:46:11 -0500 |
commit | f49d160447899270fbca6370cb7ab2742dce85dc (patch) | |
tree | c0d4aba602a7ab922c77eba312540bac075ee2e8 /modules/private | |
parent | 9d6208965c0590e307b8b198557690257da83351 (diff) | |
download | gitea-f49d160447899270fbca6370cb7ab2742dce85dc.tar.gz gitea-f49d160447899270fbca6370cb7ab2742dce85dc.zip |
Replace "unix" by "http+unix" for PROTOCOL (#17771)
Diffstat (limited to 'modules/private')
-rw-r--r-- | modules/private/internal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/private/internal.go b/modules/private/internal.go index 0a39ca7b8e..a77a990627 100644 --- a/modules/private/internal.go +++ b/modules/private/internal.go @@ -46,7 +46,7 @@ func newInternalRequest(ctx context.Context, url, method string) *httplib.Reques InsecureSkipVerify: true, ServerName: setting.Domain, }) - if setting.Protocol == setting.UnixSocket { + if setting.Protocol == setting.HTTPUnix { req.SetTransport(&http.Transport{ DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) { var d net.Dialer |