Skip to content

Commit 202d136

Browse files
committed
Pass proxy to streaming EventSource
1 parent 011d754 commit 202d136

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ldclient-rb/config.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def offline?
145145
attr_reader :feature_store
146146

147147

148-
# The proxy configuration
148+
# The proxy configuration string
149149
#
150150
attr_reader :proxy
151151

lib/ldclient-rb/stream.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def start
3333
'Authorization' => @sdk_key,
3434
'User-Agent' => 'RubyClient/' + LaunchDarkly::VERSION
3535
}
36-
opts = {:headers => headers, :with_credentials => true}
36+
opts = {:headers => headers, :with_credentials => true, :proxy => @config.proxy}
3737
@es = Celluloid::EventSource.new(@config.stream_uri + "/flags", opts) do |conn|
3838
conn.on(PUT) { |message| process_message(message, PUT) }
3939
conn.on(PATCH) { |message| process_message(message, PATCH) }

0 commit comments

Comments
 (0)