servant-jquery: set content type to application/json on POST
This commit is contained in:
parent
9c50804c6f
commit
2fd069df59
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ generateJS req = "\n" <>
|
|||
<> " $.ajax(\n"
|
||||
<> " { url: " <> url <> "\n"
|
||||
<> " , success: onSuccess\n"
|
||||
<> " , contentType: \"application/json\"\n"
|
||||
<> dataBody
|
||||
<> reqheaders
|
||||
<> " , error: onError\n"
|
||||
|
|
Loading…
Reference in a new issue