Set ok = true in formencoded item

This commit is contained in:
Peter Stuifzand 2018-07-15 00:16:57 +02:00
parent 6426b31c0b
commit 3d03a17f42

View File

@ -81,6 +81,7 @@ func (h *micropubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
item.Name = name item.Name = name
item.Content = &microsub.Content{Text: content} item.Content = &microsub.Content{Text: content}
item.Published = time.Now().Format(time.RFC3339) item.Published = time.Now().Format(time.RFC3339)
ok = true
} else { } else {
http.Error(w, "Unsupported Content-Type", 400) http.Error(w, "Unsupported Content-Type", 400)
return return