From 00c520f9653a72314a2e9ac2311e68421281688f Mon Sep 17 00:00:00 2001 From: maride Date: Tue, 14 Aug 2018 22:28:34 +0200 Subject: Use POST for logout --- src/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http.go') diff --git a/src/http.go b/src/http.go index 1ddebe5..2f25a38 100644 --- a/src/http.go +++ b/src/http.go @@ -26,7 +26,7 @@ func runHTTPServer() (error) { r.HandleFunc("/files/{file}", fileHandler) r.HandleFunc("/login", loginGetHandler).Methods("GET") r.HandleFunc("/login", loginPostHandler).Methods("POST") - r.HandleFunc("/logout", logoutHandler).Methods("GET") + r.HandleFunc("/logout", logoutHandler).Methods("POST") r.HandleFunc("/api/getChallenges", getChallengesHandler).Methods("GET") address := fmt.Sprintf(":%d", *port) -- cgit 1.4.1