Update lib/http.js, testloader.js

This commit is contained in:
Namhyeon Go 2023-10-31 05:49:11 +09:00
parent 0efc455cf9
commit da36ad57be
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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);
},