Skip to content

Commit

Permalink
Merge pull request #40 from budu/fix-headers-content-type-check
Browse files Browse the repository at this point in the history
Make reload works in Rails error pages
  • Loading branch information
igorkasyanchuk authored Dec 18, 2024
2 parents e089d81 + fecaf71 commit 49abe77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_live_reload/middleware/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def make_new_response(body)
end

def html?(headers)
headers["Content-Type"].to_s.include?("text/html")
headers["content-type"].to_s.include?("text/html")
end
end
end
Expand Down

0 comments on commit 49abe77

Please sign in to comment.