diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-08 15:48:36 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-08 15:48:36 +0000 |
commit | e80a7bb3aea008135466800726cf17af9e74d740 (patch) | |
tree | f52e61ace691857a4ff4deffcd03469db4c1e1e7 | |
parent | 1467b66a0a18091efe71889c4dfe7f57bb9b3e04 (diff) |
HttpUtil: inform servers that we accept gzipped data
-rw-r--r-- | lib/rbot/core/utils/httputil.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index 15586dc1..65ed295e 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -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/)" } |