mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-07 12:16:04 +00:00
Update http.js
This commit is contained in:
parent
51da417506
commit
5a2a48945b
11
lib/http.js
11
lib/http.js
|
@ -143,6 +143,11 @@ var HTTPObject = function(engine) {
|
||||||
console.info(this.engine, "is use", binPath);
|
console.info(this.engine, "is use", binPath);
|
||||||
this._interface.setPrefix(binPath);
|
this._interface.setPrefix(binPath);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.setCurlVersion = function(curlVersion) {
|
||||||
|
this.curlVersion = curlVersion;
|
||||||
|
this.setEngine("CURL");
|
||||||
|
};
|
||||||
|
|
||||||
this.jqEnabled = function() {
|
this.jqEnabled = function() {
|
||||||
return (typeof(window) !== "undefined" && typeof(window.jQuery) !== "undefined");
|
return (typeof(window) !== "undefined" && typeof(window.jQuery) !== "undefined");
|
||||||
|
@ -1131,10 +1136,6 @@ var HTTPObject = function(engine) {
|
||||||
this.isCompressedResponse = isCompressedResponse;
|
this.isCompressedResponse = isCompressedResponse;
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setCurlVersion = function(curlVersion) {
|
|
||||||
this.curlVersion = curlVersion;
|
|
||||||
};
|
|
||||||
|
|
||||||
this.create();
|
this.create();
|
||||||
};
|
};
|
||||||
|
@ -1220,7 +1221,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 = "WelsonJS framework HTTP client (http.js) version 0.7.46";
|
exports.VERSIONINFO = "WelsonJS framework HTTP client (http.js) version 0.7.47";
|
||||||
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