about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitDiff.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepoGitDiff.pm')
-rw-r--r--lib/PublicInbox/RepoGitDiff.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/PublicInbox/RepoGitDiff.pm b/lib/PublicInbox/RepoGitDiff.pm
index 8d3b97a0..35bcb2d9 100644
--- a/lib/PublicInbox/RepoGitDiff.pm
+++ b/lib/PublicInbox/RepoGitDiff.pm
@@ -54,15 +54,14 @@ sub call_git_diff {
         $qsp->psgi_return($env, undef, sub { # parse header
                 my ($r) = @_;
                 if (!defined $r) {
-                        [ 500, [ 'Content-Type', 'text/plain' ], [ $git->err ]];
+                        $self->rt(500, 'plain', $git->err);
                 } elsif ($r == 0) {
-                        [ 200, [ 'Content-Type', 'text/html' ], [
+                        $self->rt(200, 'html',
                                 delete($req->{dhtml}).
-                                'No differences</pre></body></html>' ]
-                        ]
+                                'No differences</pre></body></html>');
                 } else {
                         $env->{'qspawn.filter'} = git_diff_sed($self, $req);
-                        [ 200, [ 'Content-Type', 'text/html' ] ];
+                        $self->rt(200, 'html');
                 }
         });
 }