diff --git a/lib/http.js b/lib/http.js index 4261f89..f006fc6 100644 --- a/lib/http.js +++ b/lib/http.js @@ -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;