]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
HttpUtil: inform servers that we accept gzipped data
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 8 Apr 2007 15:48:36 +0000 (15:48 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 8 Apr 2007 15:48:36 +0000 (15:48 +0000)
lib/rbot/core/utils/httputil.rb

index 15586dc169d07a97e1512e2ba04233d039af1545..65ed295ef565b7ff07dc55b2061d9ab35f961898 100644 (file)
@@ -241,6 +241,7 @@ class HttpUtil
     @cache = Hash.new
     @headers = {
       'Accept-Charset' => 'utf-8;q=1.0, *;q=0.8',
+      'Accept-Encoding' => 'gzip;q=1, identity;q=0.8, *;q=0.2',
       'User-Agent' =>
         "rbot http util #{$version} (http://linuxbrit.co.uk/rbot/)"
     }