summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/core/utils/httputil.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb
index 448c8da1..1044b4b5 100644
--- a/lib/rbot/core/utils/httputil.rb
+++ b/lib/rbot/core/utils/httputil.rb
@@ -106,7 +106,7 @@ module ::Net
end
end
- def body
+ def cooked_body
return self.body_to_utf(self.decompress_body(self.raw_body))
end
@@ -385,6 +385,9 @@ class HttpUtil
warning ":| redirect w/o location?"
end
end
+ class << resp
+ alias :body :cooked_body
+ end
if block_given?
yield(resp)
else