We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6dcd66f + 910a3fb commit dcd3b73Copy full SHA for dcd3b73
lib/rails_live_reload/middleware/base.rb
@@ -18,7 +18,7 @@ def call!(env)
18
request = ActionDispatch::Request.new(env)
19
status, headers, body = @app.call(env)
20
21
- if html?(headers) && (status == 500 || (status.to_s =~ /20./ && request.get?))
+ if html?(headers) && (status == 500 || status == 422 || (status.to_s =~ /20./ && request.get?))
22
return inject_rails_live_reload(request, status, headers, body)
23
end
24
0 commit comments