-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix internal requests when gitea listens to unix socket or only external IP #2234
Conversation
04a6df3
to
03fd058
Compare
modules/private/branch.go
Outdated
resp, err := newRequest(reqURL, "GET").SetTLSClientConfig(&tls.Config{ | ||
InsecureSkipVerify: true, | ||
}).Response() | ||
resp, err := newInternalReqest(reqURL, "GET").Response() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo newInternalReqest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@silverwind fixed typo
LGTM, but integration test is better. |
Can not create integration test for this as it requires external ssh server |
LGTM |
Fixes #2232