diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2024-08-14 11:46:26 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2024-08-14 11:46:26 +0200 |
commit | 6861c283350e84dc2b396a8c33dcab82f68a01fd (patch) | |
tree | 4b4ea181f7a558d76be3c693edc6c3ed6ef38d3f | |
parent | 98db04121f01d7d3d22152dc030894a4df87d125 (diff) | |
download | zorglub-6861c283350e84dc2b396a8c33dcab82f68a01fd.zip zorglub-6861c283350e84dc2b396a8c33dcab82f68a01fd.tar.gz |
fix redirect, call Rack::Response#finish
-rw-r--r-- | lib/zorglub/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |