servant-jquery: set content type to application/json on POST

This commit is contained in:
Christian Marie 2015-07-08 11:54:44 +10:00
parent 9c50804c6f
commit 2fd069df59

View file

@ -37,6 +37,7 @@ generateJS req = "\n" <>
<> " $.ajax(\n"
<> " { url: " <> url <> "\n"
<> " , success: onSuccess\n"
<> " , contentType: \"application/json\"\n"
<> dataBody
<> reqheaders
<> " , error: onError\n"