Permalink
Browse files

fix no_proxy_regexps

  • Loading branch information...
1 parent 4e233f8 commit 4a5b8d8653edce9a47682736b0542df9e48df716 @ohzaki ohzaki committed with Feb 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/httpclient.rb
View
@@ -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

0 comments on commit 4a5b8d8

Please sign in to comment.