Skip to content

Commit

Permalink
Use correct syntax for Last-Modified header (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
davekaro authored Mar 21, 2024
1 parent 5ebe4d9 commit 0ebfd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phlex/rails/streaming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def stream(view)
headers["X-Accel-Buffering"] = "no"
headers["Cache-Control"] = "no-cache"
headers["Content-Type"] = "text/html; charset=utf-8"
headers["Last-Modified"] = Time.zone.now.ctime.to_s
headers["Last-Modified"] = Time.now.httpdate

response.status = 200

Expand Down

0 comments on commit 0ebfd31

Please sign in to comment.