]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
* (httputils) moved encoding/charsets magic into httpres instances from the global...
authorDmitry Kim <dmitry point kim at gmail point com>
Fri, 10 Aug 2007 12:53:40 +0000 (12:53 +0000)
committerDmitry Kim <dmitry point kim at gmail point com>
Fri, 10 Aug 2007 12:53:40 +0000 (12:53 +0000)
lib/rbot/core/utils/httputil.rb

index 448c8da1cc0e14ed8e963844d2703e71e39e2c88..1044b4b5c275ceee072a90cefab0912f5c28ce48 100644 (file)
@@ -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