show error in h value

This commit is contained in:
Niko Abeler 2022-11-19 15:55:38 +01:00
parent 33ca1fba6f
commit ecc12333e1
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ func userMicropubHandler(repo *owl.Repository) func(http.ResponseWriter, *http.R
if h != "entry" {
w.WriteHeader(http.StatusBadRequest)
w.Write([]byte("Bad request. h must be entry"))
w.Write([]byte("Bad request. h must be entry. Got " + h))
return
}
if content == "" {