Update IsJSON call in handleRenderMarkdown()
This commit is contained in:
parent
5fa164d5cf
commit
a266d8e032
|
@ -239,8 +239,7 @@ func shortPostDescription(content string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleRenderMarkdown(app *App, w http.ResponseWriter, r *http.Request) error {
|
func handleRenderMarkdown(app *App, w http.ResponseWriter, r *http.Request) error {
|
||||||
// TODO: accept header
|
if !IsJSON(r) {
|
||||||
if !IsJSON(r.Header.Get("Content-Type")) {
|
|
||||||
fmt.Println("missing header")
|
fmt.Println("missing header")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue