about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitLog.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-03 00:55:07 +0000
committerEric Wong <e@80x24.org>2017-03-03 00:55:07 +0000
commitb9b12ac92230cc6807623293b93cc22e5eb33684 (patch)
treee05c029ebd6a16bbd9dd5045dcff7d2701794235 /lib/PublicInbox/RepoGitLog.pm
parent16b1fbe36cc39a351ef9810b9018d36df833a941 (diff)
downloadpublic-inbox-b9b12ac92230cc6807623293b93cc22e5eb33684.tar.gz
For everything with relevant content, we'll try to set
UTF-8 charset and reduce duplication when generating
response headers.
Diffstat (limited to 'lib/PublicInbox/RepoGitLog.pm')
-rw-r--r--lib/PublicInbox/RepoGitLog.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/RepoGitLog.pm b/lib/PublicInbox/RepoGitLog.pm
index 1ad83fc0..73319633 100644
--- a/lib/PublicInbox/RepoGitLog.pm
+++ b/lib/PublicInbox/RepoGitLog.pm
@@ -139,12 +139,12 @@ sub call_git_log {
         $qsp->psgi_return($env, undef, sub {
                 my ($r) = @_;
                 if (!defined $r) {
-                        [ 500, [ 'Content-Type', 'text/html' ], [ $git->err ] ];
+                        $self->rt(500, 'html', $git->err);
                 } elsif ($r == 0) {
-                        [ 404, [ 'Content-Type', 'text/html' ], [ $git->err ] ];
+                        $self->rt(404, 'html', $git->err);
                 } else {
                         $env->{'qspawn.filter'} = git_log_sed($self, $req);
-                        [ 200, [ 'Content-Type', 'text/html' ] ];
+                        $self->rt(200, 'html');
                 }
         });
 }