no sense to add anything that is not 200. #10
@ -62,7 +62,7 @@ module Rack
|
|||||||
body.close if body.respond_to?(:close)
|
body.close if body.respond_to?(:close)
|
||||||
|
|
||||||
if !ignored?(env['PATH_INFO']) && !bad_browser?(env['HTTP_USER_AGENT'])
|
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
|
content_length = 0
|
||||||
|
|
||||||
new_body.each do |line|
|
new_body.each do |line|
|
||||||
|
Loading…
Reference in New Issue
Block a user