about summary refs log tree commit diff
path: root/src/http.go
diff options
context:
space:
mode:
authormaride <maride@darknebu.la>2018-08-14 22:28:34 +0200
committermaride <maride@darknebu.la>2018-08-14 22:28:34 +0200
commit00c520f9653a72314a2e9ac2311e68421281688f (patch)
treedfc87f2cdb36f7b3cc0f8aee35eb93e745cc45d8 /src/http.go
parent6a66ed60af5ba83d3e9c064d41dbd1b7a0f23468 (diff)
Use POST for logout
Diffstat (limited to 'src/http.go')
-rw-r--r--src/http.go2
1 files changed, 1 insertions, 1 deletions
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)