diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-03-19 12:33:04 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-03-19 12:33:04 +0100 |
commit | bbdd0e0de0d24a962a6452d31dc26936bea1f958 (patch) | |
tree | 46fa7d2032e4b87f80ddd72bda444efc7944a99c /lib | |
parent | b56a4a8f934f7ed9d3e7d19a4d3335738ca9ffad (diff) | |
download | zorglub-bbdd0e0de0d24a962a6452d31dc26936bea1f958.zip zorglub-bbdd0e0de0d24a962a6452d31dc26936bea1f958.tar.gz |
rack response.header -> response.headers
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zorglub/node.rb | 4 |
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 } |