mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update lib/http.js, testloader.js
This commit is contained in:
parent
0efc455cf9
commit
da36ad57be
|
@ -372,7 +372,9 @@ var HTTPObject = function(engine) {
|
|||
break;
|
||||
|
||||
default:
|
||||
console.error("Not supported method in MSXML: " + method);
|
||||
console.warn("Switching the engine to cURL. Not supported method in MSXML: " + method);
|
||||
this.setEngine("CURL");
|
||||
console.log("Opened engine:", this.engine);
|
||||
}
|
||||
} else {
|
||||
console.log("Opened engine:", this.engine);
|
||||
|
@ -966,7 +968,7 @@ exports.patch = patch;
|
|||
exports.put = put;
|
||||
exports._delete = _delete;
|
||||
|
||||
exports.VERSIONINFO = "HTTP Library (http.js) version 0.7.10";
|
||||
exports.VERSIONINFO = "HTTP Library (http.js) version 0.7.11";
|
||||
exports.AUTHOR = "abuse@catswords.net";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
|
@ -375,7 +375,7 @@ var test_implements = {
|
|||
var response1 = HTTP.put("https://httpbin.org/put", {}, {});
|
||||
console.log("응답: " + response1);
|
||||
|
||||
var response2 = HTTP.put("https://httpbin.org/patch", {}, {});
|
||||
var response2 = HTTP.patch("https://httpbin.org/patch", {}, {});
|
||||
console.log("응답: " + response2);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user