summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/core/utils/httputil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb
index 43c4f6dd..2328dc26 100644
--- a/lib/rbot/core/utils/httputil.rb
+++ b/lib/rbot/core/utils/httputil.rb
@@ -84,7 +84,7 @@ module ::Net
case method
when nil
return str
- when 'gzip', 'x-gzip'
+ when /gzip/ # Matches gzip, x-gzip, and the non-rfc-compliant gzip;q=\d sent by some servers
debug "gunzipping body"
begin
return Zlib::GzipReader.new(StringIO.new(str)).read