don't skip processing when response's status code isn't 200 #37
@ -36,7 +36,7 @@ module Rack
|
|||||||
end
|
end
|
||||||
|
|
||||||
def html?
|
def html?
|
||||||
@headers['Content-Type'] =~ %r{text/html} and @status == 200
|
@headers['Content-Type'] =~ %r{text/html}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user