-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
example.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,7 +165,7 @@ var HTTPObject = function(engine) { | |
]); | ||
} else if (this.engine == "CURL") { | ||
this._interface = SHELL.create(); | ||
this.setBinPath("bin\\curl.exe"); // the location of cURL binary | ||
this.setBinPath("bin\\x64\\curl-8.10.1_1-win64-mingw\\bin\\curl.exe"); // the location of cURL binary | ||
} else if (this.engine == "BITS") { | ||
this._interface = SHELL.create(); | ||
this.setBinPath("bitsadmin.exe"); // the location of BITS binary | ||
|
@@ -701,6 +701,9 @@ var HTTPObject = function(engine) { | |
// Get debuging text | ||
debuggingText = this._interface.stderr.read(); | ||
} | ||
|
||
// clear the stdout and stderr | ||
this._interface.clear(); | ||
} else if (this.engine == "BITS") { | ||
var job_name = "welsonjs_" + PipeIPC.UUIDv4.create().substring(0, 8); | ||
var job_priority = "normal"; | ||
|
@@ -1155,7 +1158,7 @@ exports.parseURL = parseURL; | |
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT; | ||
exports.defaultUserAgent = DEFAULT_USER_AGENT; // compatible | ||
|
||
exports.VERSIONINFO = "HTTP REST Client (http.js) version 0.7.30"; | ||
exports.VERSIONINFO = "HTTP REST Client (http.js) version 0.7.31"; | ||
exports.AUTHOR = "[email protected]"; | ||
exports.global = global; | ||
exports.require = global.require; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,16 +111,13 @@ var ShellObject = function() { | |
this.stderr.reload(this.charset); | ||
|
||
stdout = this.stdout.read(); | ||
stderr = this.stderr.read(); | ||
//stderr = this.stderr.read(); | ||
|
||
//stdout = this.stdout.read(); | ||
//stderr = this.stderr.read(); | ||
//console.log("[stdout] " + stdout); | ||
//console.log("[stderr] " + stderr); | ||
|
||
this.stdout.destroy(); | ||
this.stderr.destroy(); | ||
|
||
return stdout; | ||
}; | ||
|
||
|
@@ -171,6 +168,11 @@ var ShellObject = function() { | |
this._interface = null; | ||
}; | ||
|
||
this.clear = function() { | ||
this.stdout.destroy(); | ||
this.stderr.destroy(); | ||
}; | ||
|
||
this.create(); | ||
}; | ||
|
||
|
@@ -222,7 +224,7 @@ exports.getPathOfMyDocuments = function() { | |
|
||
exports.CdoCharset = PipeIPC.CdoCharset; | ||
|
||
exports.VERSIONINFO = "Windows Shell Interface (shell.js) version 0.3.13"; | ||
exports.VERSIONINFO = "Windows Shell Interface (shell.js) version 0.3.14"; | ||
exports.AUTHOR = "[email protected]"; | ||
exports.global = global; | ||
exports.require = global.require; |