Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix no_proxy_regexps

  • Loading branch information...
commit 4a5b8d8653edce9a47682736b0542df9e48df716 1 parent 4e233f8
@ohzaki ohzaki authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/httpclient.rb
View
2  lib/httpclient.rb
@@ -483,7 +483,7 @@ def no_proxy=(no_proxy)
@no_proxy = no_proxy
@no_proxy_regexps.clear
if @no_proxy
- @no_proxy.scan(/([^:,]+)(?::(\d+))?/) do |host, port|
+ @no_proxy.scan(/([^\s:,]+)(?::(\d+))?/) do |host, port|
if host[0] == ?.
regexp = /#{Regexp.quote(host)}\z/i
else
Please sign in to comment.
Something went wrong with that request. Please try again.