diff options
author | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2014-11-28 12:16:51 +0000 |
---|---|---|
committer | Jon Cowie <jcowie@etsy.com> | 2014-12-29 13:14:42 +0000 |
commit | 2339da8290061d975e06fc618b84999f260f458c (patch) | |
tree | 0edeaf4957c0cf2b022af2d97b7af0407da22070 /lib/chef/http.rb | |
parent | 151e18fc0ebf1597498a65008f02a760b1737ef0 (diff) | |
download | chef-2339da8290061d975e06fc618b84999f260f458c.tar.gz |
Fix. Make sure that scheme part of the URI is treated in a case-insensitive manner.
This is as per http://en.wikipedia.org/wiki/URI_scheme, and solves some
edges i.e., following (30x) URL from the "Location" header where we
have to deal with "HTTP://".
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Diffstat (limited to 'lib/chef/http.rb')
-rw-r--r-- | lib/chef/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/http.rb b/lib/chef/http.rb index 8d00a38dc1..5e52337aff 100644 --- a/lib/chef/http.rb +++ b/lib/chef/http.rb @@ -203,7 +203,7 @@ class Chef def create_url(path) return path if path.is_a?(URI) - if path =~ /^(http|https):\/\// + if path =~ /^(http|https):\/\//i URI.parse(path) elsif path.nil? or path.empty? URI.parse(@url) |