lib/roda/plugins/heartbeat.rb in roda-3.69.0 vs lib/roda/plugins/heartbeat.rb in roda-3.70.0

- old
+ new

@@ -25,10 +25,10 @@ # If the request is for a heartbeat path, return the heartbeat response. def _roda_before_20__heartbeat if env['PATH_INFO'] == opts[:heartbeat_path] response = @_response response.status = 200 - response['Content-Type'] = 'text/plain' + response[RodaResponseHeaders::CONTENT_TYPE] = 'text/plain' response.write 'OK' throw :halt, response.finish end end end