about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http.go b/src/http.go
index d39b879..8cbcf01 100644
--- a/src/http.go
+++ b/src/http.go
@@ -189,6 +189,8 @@ func editPostHandler(w http.ResponseWriter, r *http.Request) {
 	// update the challenge in the database
 	editChallengeUUID(r.Form.Get("challengeUUID"), editedChallenge)
 	log.Println("done editing challenge!")
+
+	http.Redirect(w, r, "/edit", http.StatusSeeOther)
 }
 
 // Helper function to host files off of "hosted/" directory