Commit 43820025 authored by Krit Punpreuk's avatar Krit Punpreuk

Update perform.js

parent f56b5bb3
...@@ -56,7 +56,7 @@ function perform_function(context,request,response){ ...@@ -56,7 +56,7 @@ function perform_function(context,request,response){
// Setup Body if POST or PUT // Setup Body if POST or PUT
if(method == 'POST' || method == 'PUT') { if(method == 'POST' || method == 'PUT') {
if(option.headers['content-type'] && option.headers['content-type'] == 'application/json') { if(option.headers['content-type'] && option.headers['content-type'] == 'application/json') {
option.body = JSON.parse(body) option.body = JSON.parse(body.replace(/\n/g, "\\\\n"))
} else { } else {
option.body = body option.body = body
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment