show error in h value

micropub
Niko Abeler 1 year ago
parent 33ca1fba6f
commit ecc12333e1
  1. 2
      cmd/owl/web/handler.go

@ -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 == "" {

Loading…
Cancel
Save