Update http.js

This commit is contained in:
Namhyeon Go 2024-05-22 18:30:07 +09:00 committed by GitHub
parent 2157a23d9f
commit 0f07c61ad6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;