summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2024-08-13 14:31:33 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2024-08-13 14:31:33 +0200
commit19d49f690c438327ee7cf4f5ce683b992333a279 (patch)
tree7572924b363f03e0ae9453424afd2ab637c653f0
parentbb448b1677f428b0d813232492f6ba02ddb33372 (diff)
downloadzorglub-19d49f690c438327ee7cf4f5ce683b992333a279.zip
zorglub-19d49f690c438327ee7cf4f5ce683b992333a279.tar.gz
Content-Type -> content-type
-rw-r--r--lib/zorglub/node.rb4
-rw-r--r--spec/spec_helper.rb2
2 files changed, 3 insertions, 3 deletions
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 "%<node.class.name>s mapped at %<node.map>p can't respond to : %<node.meth>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
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 079607b..4a323c9 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -72,7 +72,7 @@ class Node0 < Zorglub::Node
def do_content_type
engine! 'real'
- response.headers['Content-Type'] = 'text/mine'
+ response.headers['content-type'] = 'text/mine'
end
def do_partial(_arg1, _arg2)