mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Update http.js
This commit is contained in:
parent
92c9ae3063
commit
3c375f6a7c
|
@ -617,7 +617,7 @@ var HTTPObject = function(engine) {
|
||||||
var url = state.url;
|
var url = state.url;
|
||||||
var out = PipeIPC.connect("volatile");
|
var out = PipeIPC.connect("volatile");
|
||||||
|
|
||||||
if (this.method !== "GET") {
|
if (this.method == "GET") {
|
||||||
cmd = cmd.concat(["/download", "/priority", job_priority, url, out.path]); // build a BITS command
|
cmd = cmd.concat(["/download", "/priority", job_priority, url, out.path]); // build a BITS command
|
||||||
_interface.exec(cmd); // launch the download job
|
_interface.exec(cmd); // launch the download job
|
||||||
out.reload(); // read the downloaded data
|
out.reload(); // read the downloaded data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user