diff options
author | Chris Gahan <chris@ill-logic.com> | 2006-02-09 19:24:03 +0000 |
---|---|---|
committer | Chris Gahan <chris@ill-logic.com> | 2006-02-09 19:24:03 +0000 |
commit | 590379e94b8e4a17414cf6ed6895c35d3123cc2e (patch) | |
tree | 980c049a75d6ed1f52c4bb6f8e76b25b385a44cb /data/rbot | |
parent | df0347a97390299b1d4ef878d3f592e01c477afc (diff) |
Stupid lack of a User-Agent was breaking a bunch of servers (403 errors). FIXED.
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/url.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |