summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-03-19 12:33:04 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-03-19 12:33:04 +0100
commitbbdd0e0de0d24a962a6452d31dc26936bea1f958 (patch)
tree46fa7d2032e4b87f80ddd72bda444efc7944a99c /lib
parentb56a4a8f934f7ed9d3e7d19a4d3335738ca9ffad (diff)
downloadzorglub-bbdd0e0de0d24a962a6452d31dc26936bea1f958.zip
zorglub-bbdd0e0de0d24a962a6452d31dc26936bea1f958.tar.gz
rack response.header -> response.headers
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index d1a075a..793e81c 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -150,7 +150,7 @@ module Zorglub
def redirect target, options={}, &block
status = options[:status] || 302
body = options[:body] || redirect_body(target)
- header = response.header.merge('Location' => target.to_s)
+ header = response.headers.merge('Location' => target.to_s)
throw :stop_realize, Rack::Response.new(body, status, header, &block)
end
@@ -276,7 +276,7 @@ module Zorglub
catch(:stop_realize) {
feed!
response.write @content
- response.header['Content-Type'] ||= ( @mime || 'text/html' )
+ response.headers['Content-Type'] ||= ( @mime || 'text/html' )
response.finish
response
}