mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 07:21:43 +00:00
Update http.js
This commit is contained in:
parent
8bb0f68049
commit
8942a98431
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user