benmanns / cleverbot

Deprecated/unmaintained. See https://www.cleverbot.com/api/
https://github.com/benmanns/cleverbot
MIT License
22 stars 19 forks source link

this fixes the exception raised on ruby 2.2 #6

Closed bougyman closed 3 years ago

bougyman commented 9 years ago

Exception is

bougyman@zaphod ~/g/clever % pry -r cleverbot
[1] pry(main)> c = Cleverbot::Client.new
=> #<Cleverbot::Client:0x9d85d84 @params={}>
[2] pry(main)> c.write "foo"
Zlib::DataError: incorrect header check
from /home/bougyman/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/net/http/response.rb:377:in `inflate'