Update http.js

This commit is contained in:
Namhyeon Go 2022-05-13 01:51:55 +09:00 committed by GitHub
parent 732797f0ea
commit a7613eed6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,7 @@ var HTTPObject = function(engine) {
} else if (typeof(requestBody) === "object") {
return this.serializeURL(this.requestBody);
} else {
return this.requestBody;
return this.evaluate(this.requestBody);
}
};
@ -281,7 +281,7 @@ var HTTPObject = function(engine) {
var s = [];
for (var k in parameters) {
if (parameters.hasOwnProperty(k)) {
s.push(encodeURIComponent(k) + "=" + encodeURIComponent(parameters[k]));
s.push(encodeURIComponent(k) + "=" + encodeURIComponent(this.evaluate(parameters[k])));
}
}
return s.join("&");