mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-16 06:31:04 +00:00
Add support ARM architecture (lib/http.js)
This commit is contained in:
parent
ce440ae7f7
commit
4f1154f412
|
@ -168,7 +168,9 @@ var HTTPObject = function(engine) {
|
||||||
|
|
||||||
// the location of cURL binary
|
// the location of cURL binary
|
||||||
var arch = SYS.getArch();
|
var arch = SYS.getArch();
|
||||||
if (arch.indexOf("64") > -1) {
|
if (arch.toLowerCase().indexOf("arm") > -1) {
|
||||||
|
this.setBinPath("bin\\x64\\curl-8.10.1_1-win64a-mingw\\bin\\curl.exe");
|
||||||
|
} else if (arch.indexOf("64") > -1) {
|
||||||
this.setBinPath("bin\\x64\\curl-8.10.1_1-win64-mingw\\bin\\curl.exe");
|
this.setBinPath("bin\\x64\\curl-8.10.1_1-win64-mingw\\bin\\curl.exe");
|
||||||
} else {
|
} else {
|
||||||
this.setBinPath("bin\\x86\\curl-8.10.1_1-win32-mingw\\bin\\curl.exe");
|
this.setBinPath("bin\\x86\\curl-8.10.1_1-win32-mingw\\bin\\curl.exe");
|
||||||
|
@ -185,7 +187,7 @@ var HTTPObject = function(engine) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setBinPath = function(binPath) {
|
this.setBinPath = function(binPath) {
|
||||||
console.info(this.engine, " is use ", binPath);
|
console.info(this.engine, "is use", binPath);
|
||||||
this._interface.setPrefix(binPath);
|
this._interface.setPrefix(binPath);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1165,7 +1167,7 @@ exports.parseURL = parseURL;
|
||||||
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
||||||
exports.defaultUserAgent = DEFAULT_USER_AGENT; // compatible
|
exports.defaultUserAgent = DEFAULT_USER_AGENT; // compatible
|
||||||
|
|
||||||
exports.VERSIONINFO = "HTTP REST Client (http.js) version 0.7.31";
|
exports.VERSIONINFO = "HTTP REST Client (http.js) version 0.7.32";
|
||||||
exports.AUTHOR = "abuse@catswords.net";
|
exports.AUTHOR = "abuse@catswords.net";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user