Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove memoization of Net::HTTP (not threadsafe)

FYI it didn't previously reuse the http connection, this just saved a tiny bit of cpu time which is probably irrelevant
  • Loading branch information...
commit 49fafbd3ddb1af9ebdf098974e39d7c472e0bdf9 1 parent d2dbfd2
@mloughran mloughran authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/pusher/client.rb
View
2  lib/pusher/client.rb
@@ -225,7 +225,7 @@ def trigger_async(channels, event_name, data, params = {})
# @private Construct a net/http http client
def net_http_client
- @_http_sync ||= begin
+ begin
if encrypted?
require 'net/https' unless defined?(Net::HTTPS)
else
Please sign in to comment.
Something went wrong with that request. Please try again.