You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider this scenario: When ENV['http_proxy'] and ENV['no_proxy'] are set in my zsh config file, faraday always fires a request via proxy even this request should not go with proxy.
Specifically, I have set ENV variables as follows:
I read faraday's source code and hack it as follows:
# lib/faraday/connection.rb line 83
proxy(options.fetch(:proxy) {
uri = ENV['http_proxy']
if uri && !uri.empty?
uri = 'http://' + uri if uri !~ /^http/i
no_proxy = ENV['no_proxy'].gsub(/\s+/, '').split(',')
u = URI(uri)
no_proxy.include?(u.hostname) ? nil : uri
end
})
The text was updated successfully, but these errors were encountered:
Consider this scenario: When ENV['http_proxy'] and ENV['no_proxy'] are set in my zsh config file, faraday always fires a request via proxy even this request should not go with proxy.
Specifically, I have set ENV variables as follows:
If I get the request http://localhost:3000, faraday should not go with proxy.
I read faraday's source code and hack it as follows:
The text was updated successfully, but these errors were encountered: