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