Skip to content

Commit b72da95

Browse files
authored
Adds Date response header. Fixes #1863 (#1866)
1 parent b5dfa0a commit b72da95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lucky/text_response.cr

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Lucky::TextResponse < Lucky::Response
2828
end
2929
context.response.content_type = content_type
3030
context.response.status_code = status
31+
context.response.headers.add "Date", HTTP.format_time(Time.utc)
3132
gzip if should_gzip?
3233
context.response.print(body) if should_print?
3334
rescue e : IO::Error

0 commit comments

Comments
 (0)