Update http.js

This commit is contained in:
Namhyeon Go 2024-11-23 19:06:43 +09:00
parent 8bb0f68049
commit 8942a98431

View File

@ -528,6 +528,7 @@ var HTTPObject = function(engine) {
var getKeyword = function(url) {
var regex = /[?&](q|wd|query|search_query|k|SearchText|search_key)=([^&]*)/g;
//var regex = /(?:[?&](q|wd|query|search_query|k|SearchText|search_key)=|\/pdsearch\/)([^&?]*)/g;
var match, keywords = [];
while ((match = regex.exec(url)) !== null) {
keywords.push(match[2]);
@ -1231,7 +1232,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.40";
exports.VERSIONINFO = "WelsonJS HTTP Client (http.js) version 0.7.41";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;