Permalink
Browse files

fix no_proxy_regexps

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

Please sign in to comment.