1
0
mirror of https://github.com/writeas/writefreely synced 2025-01-21 03:25:33 +01:00

Update IsJSON call in handleRenderMarkdown()

This commit is contained in:
Matt Baer 2019-11-29 08:12:54 -05:00
parent 5fa164d5cf
commit a266d8e032

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