From e9b4a9f11205b5330189224958f2b801006203f4 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 25 Mar 2013 18:26:13 +0000 Subject: [PATCH] give reasonable size limit [#332] --- modules/link/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/link/link.js b/modules/link/link.js index 94a2287..b6fa9f4 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -11,7 +11,7 @@ var link = function(dbot) { this.urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig; this.links = {}; this.fetchTitle = function(event, link) { - var limit = 25 * 1000, + var limit = 250 * 1000, size = 0, page = request(link, function(error, response, body) { if(!error && response.statusCode == 200) {