Merge branch 'main' into renovate/go-toolchain
ci / image (pull_request) Successful in 3m48s
ci / lint (pull_request) Successful in 10m3s
ci / build (pull_request) Successful in 8m41s
ci / test (pull_request) Successful in 16m41s

This commit is contained in:
Sebi committed 2026-11-23 16:50:53 +00:00
commit 607ff43a1c
1 file changed
+1 -2
+1 -2
View File
@@ -18,8 +18,7 @@ import (
// fakeGitHub answers like GitHub's OAuth and REST API for one user. // fakeGitHub answers like GitHub's OAuth and REST API for one user.
func fakeGitHub(t *testing.T, id int64, email string, verified bool) *httptest.Server { func fakeGitHub(t *testing.T, id int64, email string, verified bool) *httptest.Server {
var srv *httptest.Server srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
srv = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
switch r.URL.Path { switch r.URL.Path {
case "/login/oauth/authorize": case "/login/oauth/authorize":
back, _ := url.Parse(r.URL.Query().Get("redirect_uri")) back, _ := url.Parse(r.URL.Query().Get("redirect_uri"))