Skip to content

Commit

Permalink
Update spec/init_handler_spec.cr
Browse files Browse the repository at this point in the history
Co-authored-by: George Dietrich <github@dietrich.house>
  • Loading branch information
Sija and Blacksmoke16 committed Apr 3, 2024
1 parent 7858fd6 commit e9481ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/init_handler_spec.cr
Expand Up @@ -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
Expand Down

0 comments on commit e9481ba

Please sign in to comment.