template_streaming 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/template_streaming/version.rb +1 -1
- data/lib/template_streaming.rb +2 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/lib/template_streaming.rb
CHANGED
@@ -120,7 +120,8 @@ module TemplateStreaming
|
|
120
120
|
# anything will be rendered.
|
121
121
|
#
|
122
122
|
def progressive_rendering_threshold
|
123
|
-
response.header['Content-type']
|
123
|
+
content_type = response.header['Content-type']
|
124
|
+
content_type.nil? || content_type =~ %r'\Atext/html' or
|
124
125
|
return 0
|
125
126
|
|
126
127
|
case request.env['HTTP_USER_AGENT']
|