From 590379e94b8e4a17414cf6ed6895c35d3123cc2e Mon Sep 17 00:00:00 2001 From: Chris Gahan Date: Thu, 9 Feb 2006 19:24:03 +0000 Subject: Stupid lack of a User-Agent was breaking a bunch of servers (403 errors). FIXED. --- data/rbot/plugins/url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index ca24f072..1e72a3a1 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -355,7 +355,7 @@ class UrlPlugin < Plugin title = http.start { |http| url.path = '/' if url.path == '' - http.request_get(url.path) { |response| + http.request_get(url.path, "User-Agent" => "rbot-url_plugin/666.666") { |response| case response when Net::HTTPRedirection then -- cgit v1.2.3