Fix a typo in prometheus exporter (#51)

approved
#1
Fix a typo in prometheus exporter (#51)
diff --git a/lib/prometheus_exporter/server/web_server.rb b/lib/prometheus_exporter/server/web_server.rb
index b7e7418..a671ef3 100644
--- a/lib/prometheus_exporter/server/web_server.rb
+++ b/lib/prometheus_exporter/server/web_server.rb
@@ -47,7 +47,7 @@ module PrometheusExporter::Server
       @timeout = timeout
 
       @server.mount_proc '/' do |req, res|
-        res['ContentType'] = 'text/plain; charset=utf-8'
+        res['Content-Type'] = 'text/plain; charset=utf-8'
         if req.path == '/metrics'
           res.status = 200
           if req.header["accept-encoding"].to_s.include?("gzip")

GitHub
sha: fb41e20d

1 Like
Approved #2