From 46f694988ee03ec75a6606ffe6cacdc58a8906fc Mon Sep 17 00:00:00 2001 From: Viktor Erlingsson Date: Mon, 14 Oct 2024 09:54:00 +0200 Subject: [PATCH] Update src/amqproxy/http_server.cr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Carl Hörberg --- src/amqproxy/http_server.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amqproxy/http_server.cr b/src/amqproxy/http_server.cr index bdd3704..5e6db22 100644 --- a/src/amqproxy/http_server.cr +++ b/src/amqproxy/http_server.cr @@ -18,7 +18,7 @@ module AMQProxy context.response.content_type = "text/plain" context.response.print "OK" else - context.response.status = ::HTTP::Status::NOT_FOUND + context.response.respond_with_status(::HTTP::Status::NOT_FOUND) end end bind_tcp