Update IsJSON call in handleRenderMarkdown()

This commit is contained in:
Matt Baer 2019-11-29 08:12:54 -05:00
parent 5fa164d5cf
commit a266d8e032
1 changed files with 1 additions and 2 deletions

View File

@ -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")
}