aboutsummaryrefslogtreecommitdiffstats
path: root/web/login_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'web/login_test.go')
-rw-r--r--web/login_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/login_test.go b/web/login_test.go
index b48e7bc..cd3cb01 100644
--- a/web/login_test.go
+++ b/web/login_test.go
@@ -51,8 +51,8 @@ func TestCSRFLoginExclusion(t *testing.T) {
if rr.Code == http.StatusForbidden {
t.Errorf("Expected /login/ POST to be allowed without CSRF token, got 403 Forbidden")
}
- if rr.Code != http.StatusTemporaryRedirect {
- t.Errorf("Expected 307 Redirect on successful login, got %d", rr.Code)
+ if rr.Code != http.StatusSeeOther {
+ t.Errorf("Expected 303 Redirect on successful login, got %d", rr.Code)
}
// Test 2: POST /other without CSRF token