Skip to content

Comments

Added default case for unsupported methods in login handler#1226

Open
gemy26 wants to merge 1 commit intocybertec-postgresql:masterfrom
gemy26:fix-login-handler
Open

Added default case for unsupported methods in login handler#1226
gemy26 wants to merge 1 commit intocybertec-postgresql:masterfrom
gemy26:fix-login-handler

Conversation

@gemy26
Copy link

@gemy26 gemy26 commented Feb 22, 2026

Added default case for unsupported methods.

@pashagolub pashagolub self-assigned this Feb 23, 2026
@pashagolub pashagolub added the webui Admin UI related issues label Feb 23, 2026
fmt.Fprintf(w, "only POST methods is allowed.")
default:
w.Header().Set("Allow", "POST")
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably match the error message with the old one or change the expected message in the test.

I think matching the error messages is best here. This will also fix the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

webui Admin UI related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants