Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make it em-synchrony friendly

  • Loading branch information...
commit 21555918b377fbe6edd7e40cb634939bff618af2 1 parent 99c309c
Ilya Grigorik authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/pubsubhubbub/client.rb
6 lib/pubsubhubbub/client.rb
View
@@ -36,7 +36,7 @@ def command(cmd, feed, callback, options)
end
def request(opts)
- r = EventMachine::HttpRequest.new(@hub).post opts
+ r = http_request(opts)
r.callback do
if r.response_header.status == 204
@@ -50,5 +50,9 @@ def request(opts)
r
end
+
+ def http_request(opts)
+ EventMachine::HttpRequest.new(@hub).post opts
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.