Skip to content

Commit c5d14cd

Browse files
Fix data type on ajax request (#189)
1 parent 38fa1c1 commit c5d14cd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/resources/static/js/eiInfo.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ jQuery(document).ready(function () {
178178
}
179179
};
180180
var ajaxHttpSender = new AjaxHttpSender();
181+
var contentType = "application/string; charset=utf-8";
182+
var datatype = "text";
181183
var contextPath = "/auth/checkStatus";
182-
ajaxHttpSender.sendAjax(contextPath, "GET", null, callback);
184+
ajaxHttpSender.sendAjax(contextPath, "GET", null, callback, contentType, datatype);
183185
}
184186
checkBackendStatus();
185187

src/main/resources/static/js/testrules.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,10 @@ jQuery(document).ready(function () {
349349
}
350350
};
351351
var ajaxHttpSender = new AjaxHttpSender();
352+
var contentType = "application/string; charset=utf-8";
353+
var datatype = "text";
352354
var contextPath = "/auth/checkStatus";
353-
ajaxHttpSender.sendAjax(contextPath, "GET", null, callback);
355+
ajaxHttpSender.sendAjax(contextPath, "GET", null, callback, contentType, datatype);
354356
}
355357
checkBackendStatus();
356358

0 commit comments

Comments
 (0)