From a266d8e0322d3dc40e3b1599d76bf514b06438d2 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 29 Nov 2019 08:12:54 -0500 Subject: [PATCH] Update IsJSON call in handleRenderMarkdown() --- postrender.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/postrender.go b/postrender.go index 2f55896..8ab90aa 100644 --- a/postrender.go +++ b/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") }