diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-10-01 21:33:57 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-10-01 21:33:57 +0000 |
commit | 7dc90478a90c43ae1dde9332cc5e1ee282727f4e (patch) | |
tree | bb5bc026b2b1e04b232efd7858683280db462529 | |
parent | 6d0f06caba8935bad98751ff18e0561d1d0ef5dd (diff) |
* (utils) should use partial_body() for non-text responses as well
-rw-r--r-- | lib/rbot/core/utils/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb index e251178e..faf42b63 100644 --- a/lib/rbot/core/utils/utils.rb +++ b/lib/rbot/core/utils/utils.rb @@ -541,8 +541,8 @@ module ::Irc when Net::HTTPSuccess ret[:headers] = resp.to_hash + partial = resp.partial_body(@@bot.config['http.info_bytes']) if resp['content-type'] =~ /^text\/|(?:x|ht)ml/ - partial = resp.partial_body(@@bot.config['http.info_bytes']) ret.merge!(Utils.get_string_html_info(partial, opts)) end return ret |