浏览代码

add jsonfy

ming 3 年之前
父节点
当前提交
fa349dcb66
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/static/script_util.js

+ 1 - 1
api/static/script_util.js

@@ -108,7 +108,7 @@ $(".next").click(function () {
   xhr.open("POST", "http://192.168.1.106:8007/make_anchor_video");
   xhr.setRequestHeader("accept", "application/json");
   xhr.setRequestHeader("Authorization","Bearer "+jwt_token)
-  xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
+  xhr.setRequestHeader("Content-Type", "application/json");
   xhr.onreadystatechange = function () {
     if (xhr.readyState === 4) {
       Swal.fire({