diff options
-rw-r--r-- | data/rbot/plugins/url.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 858b5a05..ca24f072 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -360,8 +360,8 @@ class UrlPlugin < Plugin case response when Net::HTTPRedirection then # call self recursively if this is a redirect - redirect_to = response['location'] - puts "+ redirect location: #{redirect_to}" + redirect_to = response['location'] || './' + puts "+ redirect location: #{redirect_to.inspect}" url = URI.join url.to_s, redirect_to puts "+ whee, redirecting to #{url.to_s}!" title = get_title_for_url(url.to_s, depth-1) |