3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Actually fix [#335]

This commit is contained in:
reality 2013-04-12 22:38:00 +00:00
parent 6134f97a97
commit d8342f4489

View File

@ -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>(.*)<\/title>/, 2);