From aa489da1dc3b7ec104d97088d4590e921bfe14d6 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 10 Jul 2024 20:05:45 +0900 Subject: [PATCH] fix --- lib/http.js | 2 +- lib/pipe-ipc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http.js b/lib/http.js index 82cc03c..0ad245b 100644 --- a/lib/http.js +++ b/lib/http.js @@ -601,7 +601,7 @@ var HTTPObject = function(engine) { var out = PipeIPC.connect("volatile"); 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 out.reload(); // read the downloaded data responseText = out.read() // set the downloaded data to response text diff --git a/lib/pipe-ipc.js b/lib/pipe-ipc.js index e2d5b1d..7fa50c8 100644 --- a/lib/pipe-ipc.js +++ b/lib/pipe-ipc.js @@ -438,7 +438,7 @@ function PipeIPC() { }; // 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) { try { return (function(s) {