From 7688bd13a509d1576bb081bfb431977b1f706bda Mon Sep 17 00:00:00 2001 From: Sam Eaton Date: Mon, 7 Nov 2016 12:31:36 -0700 Subject: [PATCH] Close repsonse on halt (#246) --- src/kemal/helpers/macros.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kemal/helpers/macros.cr b/src/kemal/helpers/macros.cr index aee49d3..2f9b978 100644 --- a/src/kemal/helpers/macros.cr +++ b/src/kemal/helpers/macros.cr @@ -73,5 +73,6 @@ end macro halt(env, status_code = 200, response = "") {{env}}.response.status_code = {{status_code}} {{env}}.response.print {{response}} + {{env}}.response.close next end