Update http.js

This commit is contained in:
Namhyeon Go 2022-01-17 18:45:33 +09:00 committed by GitHub
parent 1ae2c7a814
commit 3f786a3faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,9 +279,11 @@ var HTTPObject = function(engine) {
};
this.open = function(method, url) {
var url = this.serializeParameters(url);
this.setMethod(method.toUpperCase()); // set method
this.setHeader("User-Agent", (this.userAgent != null ? this.userAgent : '')); // set user agent
this.pushState(null, null, this.serializeParameters(url)); // push state
this.pushState(null, null, url); // push state
try {
if (this.engine == "MSXML") {