1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/uri
nobu 423d042371 no_proxy with whitespaces and leading dots
* lib/uri/generic.rb (find_proxy): exclude white-spaces and allow
  for a leading dot in the domain name in no_proxy.
  [ruby-core:54542] [Feature #8317]

The previous implementation wouldn't allow for white-spaces nor a leading dot
in the domain name. The latter is described in the wget documentation as a valid case.

By being more strict on the characters, which are counted to a domainname,
we allow for white-spaces.
Also, a possible leading dot will be handled gracefully.

[Fix GH-285]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-02-13 08:12:21 +00:00
..
common.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ftp.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
generic.rb no_proxy with whitespaces and leading dots 2016-02-13 08:12:21 +00:00
http.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
https.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ldap.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
ldaps.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
mailto.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rfc2396_parser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rfc3986_parser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00