Skip to content

Commit 68241c4

Browse files
committed
Use JSON Object as ajax data instead of JSON string
1 parent 5e3c222 commit 68241c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

template/utils/send_sample_request.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ define([
7171
// send AJAX request, catch success or error callback
7272
$.ajax({
7373
url: url,
74-
contentType: "application/json",
75-
data: JSON.stringify(param),
74+
data: param,
7675
headers: header,
7776
type: type.toUpperCase(),
7877
success: displaySuccess,

0 commit comments

Comments
 (0)