about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitAtom.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/RepoGitAtom.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/RepoGitAtom.pm')
-rw-r--r--lib/PublicInbox/RepoGitAtom.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepoGitAtom.pm b/lib/PublicInbox/RepoGitAtom.pm
index c30c6184..c2393b38 100644
--- a/lib/PublicInbox/RepoGitAtom.pm
+++ b/lib/PublicInbox/RepoGitAtom.pm
@@ -124,8 +124,7 @@ sub git_atom_cb {
                 my $env = $req->{env};
                 if (!defined $r) {
                         my $git = $req->{-repo}->{git};
-                        return [ 400, [ 'Content-Type', 'text/plain' ],
-                                [ $git->err ] ];
+                        return $self->rt(400, 'plain', $git->err);
                 }
                 $env->{'qspawn.filter'} = git_atom_sed($self, $req);
                 [ 200, [ 'Content-Type', 'application/atom+xml' ] ];