diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2024-08-20 15:02:07 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2024-08-20 15:02:07 +0200 |
commit | e749869fb7d3b829d2bd35f39ac30064674d77d8 (patch) | |
tree | a8bafae616d176eeb0f0392e09bc7a3dfd5e1221 | |
parent | 06697b9f8c9fcbf2e24051a40dcd647489d45416 (diff) | |
download | zorglub-e749869fb7d3b829d2bd35f39ac30064674d77d8.zip zorglub-e749869fb7d3b829d2bd35f39ac30064674d77d8.tar.gz |
simplify call to Response.finish
-rw-r--r-- | lib/zorglub/node.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index ad5b751..69ecc20 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).finish + throw :stop_realize, Rack::Response.new(body, status, header, &block) end def redirect_body(target) @@ -277,8 +277,8 @@ module Zorglub feed! response.write @content response.headers['content-type'] ||= @mime || 'text/html' - response.finish - end + response + end.finish end def feed!(no_hooks = false) |