Update IsJSON call in handleRenderMarkdown()

pull/197/head
Matt Baer 5 years ago
parent 5fa164d5cf
commit a266d8e032
  1. 3
      postrender.go

@ -239,8 +239,7 @@ func shortPostDescription(content string) string {
}
func handleRenderMarkdown(app *App, w http.ResponseWriter, r *http.Request) error {
// TODO: accept header
if !IsJSON(r.Header.Get("Content-Type")) {
if !IsJSON(r) {
fmt.Println("missing header")
}

Loading…
Cancel
Save