From e9481ba60333f3fc7ddfd5f2af114b17cc2a67a7 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Wed, 3 Apr 2024 17:53:13 +0200 Subject: [PATCH] Update spec/init_handler_spec.cr Co-authored-by: George Dietrich --- spec/init_handler_spec.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/init_handler_spec.cr b/spec/init_handler_spec.cr index ee1c862..4b0042d 100644 --- a/spec/init_handler_spec.cr +++ b/spec/init_handler_spec.cr @@ -19,7 +19,7 @@ describe "Kemal::InitHandler" do Kemal::InitHandler::INSTANCE.next = ->(_context : HTTP::Server::Context) {} Kemal::InitHandler::INSTANCE.call(context) date = context.response.headers["Date"]?.should_not be_nil - Time.parse_rfc2822(date).should be_close(Time.utc, 1.second) + HTTP.parse_time(date).should be_close(Time.utc, 1.second) end it "initializes context with X-Powered-By: Kemal" do