diff --git a/servant-jquery/src/Servant/JQuery.hs b/servant-jquery/src/Servant/JQuery.hs index 729a3fd9..1d92ee32 100644 --- a/servant-jquery/src/Servant/JQuery.hs +++ b/servant-jquery/src/Servant/JQuery.hs @@ -37,6 +37,7 @@ generateJS req = "\n" <> <> " $.ajax(\n" <> " { url: " <> url <> "\n" <> " , success: onSuccess\n" + <> " , contentType: \"application/json\"\n" <> dataBody <> reqheaders <> " , error: onError\n"