From 19d49f690c438327ee7cf4f5ce683b992333a279 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Tue, 13 Aug 2024 14:31:33 +0200 Subject: Content-Type -> content-type --- lib/zorglub/node.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 84cba92..d468280 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -248,7 +248,7 @@ module Zorglub $stderr << " !! #{node.class.name}::#{meth} not found\n" if app.opt :debug resp = node.response resp.status = 404 - resp['Content-Type'] = 'text/plain' + resp['content-type'] = 'text/plain' resp.write "%s mapped at %p can't respond to : %p" resp end @@ -276,7 +276,7 @@ module Zorglub catch(:stop_realize) do feed! response.write @content - response.headers['Content-Type'] ||= @mime || 'text/html' + response.headers['content-type'] ||= @mime || 'text/html' response.finish response end -- cgit v1.2.3