diff --git a/lib/twitter/streaming/client.rb b/lib/twitter/streaming/client.rb index 00eb2a44f..93b49f5e5 100644 --- a/lib/twitter/streaming/client.rb +++ b/lib/twitter/streaming/client.rb @@ -110,7 +110,7 @@ def request(method, uri, params) before_request.call authorization = Twitter::Headers.new(self, method, uri, params).oauth_auth_header.to_s headers = default_headers.merge(:authorization => authorization) - request = HTTP::Request.new(method, uri + '?' + to_url_params(params), headers) + request = HTTP::Request.new(:verb => method, :uri => uri + '?' + to_url_params(params), :headers => headers) response = Streaming::Response.new do |data| if item = Streaming::MessageParser.parse(data) # rubocop:disable AssignmentInCondition yield(item) diff --git a/twitter.gemspec b/twitter.gemspec index 11219eb97..86c7de146 100644 --- a/twitter.gemspec +++ b/twitter.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'buftok', '~> 0.2.0' spec.add_dependency 'equalizer', '0.0.10' spec.add_dependency 'faraday', '~> 0.9.0' - spec.add_dependency 'http', ['>= 0.4', '< 0.10'] + spec.add_dependency 'http', '~> 1.0' spec.add_dependency 'http_parser.rb', '~> 0.6.0' spec.add_dependency 'json', '~> 1.8' spec.add_dependency 'memoizable', '~> 0.4.0'