mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +00:00
Update http.js
This commit is contained in:
parent
2157a23d9f
commit
0f07c61ad6
10
lib/http.js
10
lib/http.js
|
@ -13,6 +13,8 @@ var OS_ARCH = SYS.getArch();
|
|||
var DEVICE_UUID = SYS.getUUID();
|
||||
var PROCESS_VERSION = SYS.getProcessVersion();
|
||||
|
||||
var DEFAULT_USER_AGENT = "WelsonJS/0.2.7 (" + OS_NAME + "; " + OS_ARCH + "; " + PROCESS_VERSION + "; " + DEVICE_UUID + "; abuse@catswords.net)";
|
||||
|
||||
var HTTPObject = function(engine) {
|
||||
this.interface = null;
|
||||
this.contentType = "application/x-www-form-urlencoded";
|
||||
|
@ -22,7 +24,7 @@ var HTTPObject = function(engine) {
|
|||
this.headers = {};
|
||||
this.parameters = {};
|
||||
this.dataType = null;
|
||||
this.userAgent = "WelsonJS/0.2.7 (" + OS_NAME + "; " + OS_ARCH + "; " + PROCESS_VERSION + "; " + DEVICE_UUID + "; abuse@catswords.net)";
|
||||
this.userAgent = DEFAULT_USER_AGENT;
|
||||
this.isAsynchronous = false;
|
||||
this.proxy = {
|
||||
"enabled": false,
|
||||
|
@ -1031,9 +1033,11 @@ exports.post = post;
|
|||
exports.patch = patch;
|
||||
exports.put = put;
|
||||
exports._delete = _delete;
|
||||
exports.parseURL = parseURL;
|
||||
|
||||
exports.VERSIONINFO = "HTTP request module (http.js) version 0.7.14";
|
||||
exports.parseURL = parseURL;
|
||||
exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
|
||||
|
||||
exports.VERSIONINFO = "HTTP request module (http.js) version 0.7.15";
|
||||
exports.AUTHOR = "abuse@catswords.net";
|
||||
exports.global = global;
|
||||
exports.require = global.require;
|
||||
|
|
Loading…
Reference in New Issue
Block a user