fix: stream is closed before call_next

This commit is contained in:
Juan Rodriguez
2024-07-10 21:41:48 +02:00
parent d7a4ce25aa
commit bac73f2a47
+4 -1
View File
@@ -46,7 +46,10 @@ module App::Controllers::Link
end
end
env.redirect link.url!, 301
env.response.status_code = 301
env.response.headers["Location"] = link.url!
env.response.headers["Content-Type"] = "text/html"
env.response.print("Redirecting...")
end
end