template_streaming 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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']
         |