mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-17 04:31:38 +00:00
Set Update-Result for DELETE requests.
Done for uniformity and to make git-pages-cli implementation nicer.
This commit is contained in:
@@ -446,6 +446,7 @@ func deletePage(w http.ResponseWriter, r *http.Request) error {
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
} else {
|
||||
w.Header().Add("Update-Result", "deleted")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user