Merge branch 'main' into renovate/pin-dependencies
This commit is contained in:
commit
4a0099afe2
1 file changed
+1
-2
@@ -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"))
|
||||||
|
|||||||
Reference in new issue
Block a user