From 6861c283350e84dc2b396a8c33dcab82f68a01fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 14 Aug 2024 11:46:26 +0200 Subject: fix redirect, call Rack::Response#finish --- lib/zorglub/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 23c4d79..2553dbd 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -154,7 +154,7 @@ module Zorglub status = options[:status] || 302 body = options[:body] || redirect_body(target) header = response.headers.merge('Location' => target.to_s) - throw :stop_realize, Rack::Response.new(body, status, header, &block) + throw :stop_realize, Rack::Response.new(body, status, header, &block).finish end def redirect_body(target) -- cgit v1.1-2-g2b99