mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 07:01:04 +00:00
Update http.js
This commit is contained in:
parent
9dda6f1e09
commit
4b02143a44
|
@ -97,6 +97,7 @@ var HTTPObject = function(engine) {
|
||||||
]);
|
]);
|
||||||
} else if (this.engine == "CURL") {
|
} else if (this.engine == "CURL") {
|
||||||
this.interface = SHELL.create();
|
this.interface = SHELL.create();
|
||||||
|
this.interface.setPrefix("bin\\curl"); // the location of cURL binary
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
@ -449,7 +450,7 @@ var HTTPObject = function(engine) {
|
||||||
if (this.states.length > 0) {
|
if (this.states.length > 0) {
|
||||||
// Make CURL context
|
// Make CURL context
|
||||||
var state = this.states[this.states.length - 1];
|
var state = this.states[this.states.length - 1];
|
||||||
var cmd = ["bin\\curl"];
|
var cmd = [];
|
||||||
var url = state.url;
|
var url = state.url;
|
||||||
|
|
||||||
if (this.isDebugging) {
|
if (this.isDebugging) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user