Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no sense to add anything that is not 200.

  • Loading branch information...
commit f235eab4421a2fb19e53a18ff6e7f33c0c25768f 1 parent e59329e
@artemk artemk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rack/livereload.rb
View
2  lib/rack/livereload.rb
@@ -62,7 +62,7 @@ def _call(env)
body.close if body.respond_to?(:close)
if !ignored?(env['PATH_INFO']) && !bad_browser?(env['HTTP_USER_AGENT'])
- if headers['Content-Type'] && headers['Content-Type'][%r{text/html}]
+ if headers['Content-Type'] && status == 200 && headers['Content-Type'][%r{text/html}]
content_length = 0
new_body.each do |line|
Please sign in to comment.
Something went wrong with that request. Please try again.