diff options
author | Azul <azul@riseup.net> | 2016-06-30 13:47:40 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-06-30 13:47:40 +0200 |
commit | fe9a23419f9a875a98fc05dc22e2ad6c5f6dbe3b (patch) | |
tree | 32fa0be1bc2820dc7e252c6f5d4afe2848c58f98 /lib/nickserver/adapters | |
parent | 7802da3d9684c5c78d34e0154f827221803b207b (diff) |
actually use celluloid io for http requests
Diffstat (limited to 'lib/nickserver/adapters')
-rw-r--r-- | lib/nickserver/adapters/celluloid_http.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/nickserver/adapters/celluloid_http.rb b/lib/nickserver/adapters/celluloid_http.rb index 5772bd1..5ded702 100644 --- a/lib/nickserver/adapters/celluloid_http.rb +++ b/lib/nickserver/adapters/celluloid_http.rb @@ -4,12 +4,12 @@ require 'http' module Nickserver::Adapters class CelluloidHttp - # include Celluloid::IO + include Celluloid::IO def get(url, options = {}) response = HTTP.get url, - params: options[:query] - # ssl_socket_class: Celluloid::IO::SSLSocket + params: options[:query], + ssl_socket_class: Celluloid::IO::SSLSocket yield response.code, response.to_s end |