lib/seo_cache/middleware.rb in seo_cache-0.11.0 vs lib/seo_cache/middleware.rb in seo_cache-0.12.0

- old
+ new

@@ -32,10 +32,10 @@ end else Thread.new do prerender_data = page_render(env) # Extract status from render page - status = prerender_data.scan(/<!--status:(\d+)-->/).last&.first + status = prerender_data&.scan(/<!--status:(\d+)-->/)&.last&.first after_render(env, prerender_data, status || 200) end end elsif prerender_params?(env) env['seo_mode'] = true