diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/url.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index d48639de..57b43a61 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -37,7 +37,8 @@ class UrlPlugin < Plugin return if url.scheme !~ /https?/ puts "+ connecting to #{url.host}:#{url.port}" - title = Net::HTTP.start(url.host, url.port) do |http| + http = @bot.httputil.get_proxy(url) + title = http.start do |http| url.path = '/' if url.path == '' head = http.request_head(url.path) case head |