From d8342f4489c53469a5b3bbe4fb5c7f3e3cb1b23c Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 12 Apr 2013 22:38:00 +0000 Subject: [PATCH] Actually fix [#335] --- 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 e145538..837b3fa 100644 --- a/modules/link/link.js +++ b/modules/link/link.js @@ -14,7 +14,7 @@ var link = function(dbot) { this.fetchTitle = function(event, link) { var limit = 1000000, size = 0, - page = request(link, function(error, response, body) { + page = request(link.replace('https', 'http'), function(error, response, body) { if(!error && response.statusCode == 200) { body = body.replace(/(\r\n|\n\r|\n)/gm, " "); var title = body.valMatch(/(.*)<\/title>/, 2);