Update http.js

This commit is contained in:
Namhyeon Go 2024-07-10 12:07:52 +09:00 committed by GitHub
parent 840e3bfb4c
commit 98b49b80a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,9 @@ var HTTPObject = function(engine) {
this.create = function() {
switch (this.engine) {
case "MSXML":
if (typeof XMLHttpRequest !== "undefined") {
_interface = new XMLHttpRequest();
} else {
_interface = CreateObject([
"Microsoft.XMLHTTP",
"WinHttp.WinHttpRequest.5.1",
@ -97,6 +100,7 @@ var HTTPObject = function(engine) {
"Msxml2.ServerXMLHTTP.4.0",
"Msxml2.ServerXMLHTTP.3.0"
]);
}
break;
case "CURL":