Skip to content

Commit

Permalink
+ redirect on deletehook
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Komrakov committed Sep 14, 2015
1 parent 85431f4 commit 90bcc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,5 +281,5 @@ func DeleteHook(w http.ResponseWriter, req *http.Request) {
id, _ := strconv.Atoi(params["id"])
client.Repositories.DeleteHook(params["user"], params["repo"], id)

http.Redirect(w, req, "/repos/" + user + "/" + params["repo"], http.StatusTemporaryRedirect)
http.Redirect(w, req, "/repos/" + params["user"] + "/" + params["repo"], http.StatusTemporaryRedirect)
}

0 comments on commit 90bcc4e

Please sign in to comment.