lib/prometheus/client/push.rb in prometheus-client-2.0.0 vs lib/prometheus/client/push.rb in prometheus-client-2.1.0

- old
+ new

@@ -64,12 +64,12 @@ raise ArgumentError, "#{url} is not a valid URL: #{e}" end def build_path(job, instance) if instance - format(INSTANCE_PATH, URI.escape(job), URI.escape(instance)) + format(INSTANCE_PATH, CGI::escape(job), CGI::escape(instance)) else - format(PATH, URI.escape(job)) + format(PATH, CGI::escape(job)) end end def request(req_class, registry = nil) req = req_class.new(@uri)