Merge branch 'master' of http://git.luyuan.tk/pplokijuhyg/deguodaigou into pplok
This commit is contained in:
12
utils/bin.js
12
utils/bin.js
@@ -23,12 +23,12 @@ let request = function (obj){
|
||||
}
|
||||
}
|
||||
url+=text
|
||||
if(method == "POST" || method == "post"){
|
||||
if(header == undefined){
|
||||
header ={}
|
||||
}
|
||||
header['content-type'] = "application/x-www-form-urlencoded"
|
||||
}
|
||||
// if(method == "POST" || method == "post"){
|
||||
// if(header == undefined){
|
||||
// header ={}
|
||||
// }
|
||||
// header['content-type'] = "application/x-www-form-urlencoded"
|
||||
// }
|
||||
if(data == undefined){
|
||||
data = {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user