mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update http.js
This commit is contained in:
parent
732797f0ea
commit
a7613eed6a
|
@ -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("&");
|
||||
|
|
Loading…
Reference in New Issue
Block a user