lib/sidekiq/prometheus/exporter.rb in sidekiq-prometheus-exporter-0.1.16 vs lib/sidekiq/prometheus/exporter.rb in sidekiq-prometheus-exporter-0.1.17
- old
+ new
@@ -10,10 +10,10 @@
REQUEST_VERB = 'GET'.freeze
REQUEST_METHOD = 'REQUEST_METHOD'.freeze
NOT_FOUND_TEXT = 'Not Found'.freeze
MOUNT_PATH = '/metrics'.freeze
# rubocop:disable Style/MutableConstant
- HEADERS = {'Content-Type' => 'text/plain; version=0.0.4', 'Cache-Control' => 'no-cache'}
+ HEADERS = {Rack::CONTENT_TYPE => 'text/plain; version=0.0.4', Rack::CACHE_CONTROL => 'no-cache'}
# rubocop:enable Style/MutableConstant
EXPORTERS = Exporters.new
class << self
def banner