mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-18 02:59:04 +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") {
|
} else if (typeof(requestBody) === "object") {
|
||||||
return this.serializeURL(this.requestBody);
|
return this.serializeURL(this.requestBody);
|
||||||
} else {
|
} else {
|
||||||
return this.requestBody;
|
return this.evaluate(this.requestBody);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ var HTTPObject = function(engine) {
|
||||||
var s = [];
|
var s = [];
|
||||||
for (var k in parameters) {
|
for (var k in parameters) {
|
||||||
if (parameters.hasOwnProperty(k)) {
|
if (parameters.hasOwnProperty(k)) {
|
||||||
s.push(encodeURIComponent(k) + "=" + encodeURIComponent(parameters[k]));
|
s.push(encodeURIComponent(k) + "=" + encodeURIComponent(this.evaluate(parameters[k])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return s.join("&");
|
return s.join("&");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user