Skip to content

Commit

Permalink
Adds Date response header. Fixes #1863 (#1866)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink committed Apr 16, 2024
1 parent b5dfa0a commit b72da95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lucky/text_response.cr
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Lucky::TextResponse < Lucky::Response
end
context.response.content_type = content_type
context.response.status_code = status
context.response.headers.add "Date", HTTP.format_time(Time.utc)
gzip if should_gzip?
context.response.print(body) if should_print?
rescue e : IO::Error
Expand Down

0 comments on commit b72da95

Please sign in to comment.