mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
Use JSON response for "user/logout" (#25522)
The request sent to "user/logout" is from "link-action", it expects to get JSON response.
This commit is contained in:
1 parent
da6df0d063
commit
ddf96f68cc
3 files changed
+4
-4
No files matched your search
@@ -16,7 +16,7 @@ func TestSignOut(t *testing.T) {
|
||||
session := loginUser(t, "user2")
|
||||
|
||||
req := NewRequest(t, "POST", "/user/logout")
|
||||
session.MakeRequest(t, req, http.StatusSeeOther)
|
||||
session.MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
// try to view a private repo, should fail
|
||||
req = NewRequest(t, "GET", "/user2/repo2")
|
||||
|
||||
Reference in new issue
Block a user