From 833a260275f141a39f683e49d9ec2717457c20b5 Mon Sep 17 00:00:00 2001 From: Chris Roddy Date: Mon, 1 Apr 2019 17:04:32 -0500 Subject: [PATCH] remove URI escaping --- lib/puppet/functions/hiera_http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/functions/hiera_http.rb b/lib/puppet/functions/hiera_http.rb index fab4bf2..02992bc 100644 --- a/lib/puppet/functions/hiera_http.rb +++ b/lib/puppet/functions/hiera_http.rb @@ -102,7 +102,7 @@ def parse_tags(key,str) def http_get(context, options) uri = URI.parse(options['uri']) - host, port, path = uri.host, uri.port, URI.escape(context.interpolate(uri.request_uri)) + host, port, path = uri.host, uri.port, context.interpolate(uri.request_uri) if context.cache_has_key(path) context.explain { "Returning cached value for #{path}" }