This commit is contained in:
Namhyeon Go 2024-07-10 20:05:45 +09:00
parent c49d2720f2
commit aa489da1dc
2 changed files with 2 additions and 2 deletions

View File

@ -601,7 +601,7 @@ var HTTPObject = function(engine) {
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, SYS.getCurrentScriptDirectory() + "\\" + out.path]); // build a BITS command
this._interface.exec(cmd); // launch the download job this._interface.exec(cmd); // launch the download job
out.reload(); // read the downloaded data out.reload(); // read the downloaded data
responseText = out.read() // set the downloaded data to response text responseText = out.read() // set the downloaded data to response text

View File

@ -438,7 +438,7 @@ function PipeIPC() {
}; };
// Fixed bug: broken GUI sample #86, Reported by @eogloblin, in 2023-10-26 // Fixed bug: broken GUI sample #86, Reported by @eogloblin, in 2023-10-26
// Reference #1: https://gist.github.com/antic183/619f42b559b78028d1fe9e7ae8a1352d // https://gist.github.com/antic183/619f42b559b78028d1fe9e7ae8a1352d
this._read = function(fh) { this._read = function(fh) {
try { try {
return (function(s) { return (function(s) {