]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchView.pm
www_stream: add response wrapper sub
[public-inbox.git] / lib / PublicInbox / SearchView.pm
index 4af6cadbaf0e901b0a571912f5d53d4d1623d8c2..30a310c9f58ceede52857d3b07d23668eaedcf6b 100644 (file)
@@ -55,9 +55,7 @@ sub sres_top_html {
                        $cb = mset_summary($ctx, $mset, $q);
                }
        }
-
-       [ $code, ['Content-Type', 'text/html; charset=UTF-8'],
-               PublicInbox::WwwStream->new($ctx, $cb) ];
+       PublicInbox::WwwStream->response($ctx, $code, $cb);
 }
 
 # display non-threaded search results similar to what users expect from