From bbdd0e0de0d24a962a6452d31dc26936bea1f958 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Sun, 19 Mar 2023 12:33:04 +0100 Subject: rack response.header -> response.headers --- 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 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 } -- cgit v1.2.3