From 1924d28952da14cb8ee1f4dac2bdf4f794892bf4 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sat, 14 Apr 2012 06:12:36 +0100 Subject: [PATCH] apparently http is bad --- modules/autoshorten.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/autoshorten.js b/modules/autoshorten.js index 6f2f408..6af1a8b 100644 --- a/modules/autoshorten.js +++ b/modules/autoshorten.js @@ -11,8 +11,8 @@ var autoshorten = function(dbot) { if(urlMatches !== null) { var url = urlMatches[0]; // Only doing one, screw you. - var site = http.createClient(80, 'http://nc.no.de'); - var request = site.request("GET", 'mkurl', { 'host' : 'http://nc.no.de/', + var site = http.createClient(80, 'nc.no.de'); + var request = site.request("GET", 'mkurl', { 'host' : 'nc.no.de/', 'url': url}); request.end();