提交 9b0cbe80 编写于 作者: hlwwx's avatar hlwwx

'修了一个表单提交contentType类型有误'

上级 c588f2ba
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ Describe.doPost = function(address, m, data) {
headers : {
'x-debugger' : true
},
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : false,
contentType : (m.contentType.indexOf('application/json') > -1) ? m.contentType : m.contentType,
processData : (m.contentType.indexOf('application/json') > -1) ? true : false,
xhrFields : {
'withCredentials' : true
......@@ -562,7 +562,8 @@ Describe.createSample= function(m) {
strSample += " type : '"+ m.type + "',\n";
strSample += " url : '"+address + "',\n";
strSample += " headers : {'x-debugger' : true}" + ",\n";
strSample += " contentType : false,\n";
//strSample += " contentType : false,\n";
strSample += " contentType : '"+m.contentType+ "',\n";
strSample += " processData : false,\n";
strSample += " xhrFields : {'withCredentials' : true}" + ",\n";
strSample += " crossDomain : true"+ ",\n";
......@@ -1347,4 +1348,4 @@ Describe.prototype = {
}
})
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册