Set ok = true in formencoded item
This commit is contained in:
parent
6426b31c0b
commit
3d03a17f42
|
@ -81,6 +81,7 @@ func (h *micropubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
item.Name = name
|
||||
item.Content = µsub.Content{Text: content}
|
||||
item.Published = time.Now().Format(time.RFC3339)
|
||||
ok = true
|
||||
} else {
|
||||
http.Error(w, "Unsupported Content-Type", 400)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user