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:
parent
5fa164d5cf
commit
a266d8e032
@ -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…
Reference in New Issue
Block a user