]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwAtomStream.pm
nntp: inline CRLF in all response lines
[public-inbox.git] / lib / PublicInbox / WwwAtomStream.pm
index 5d32294eec159f58cb9b2ff7153f512c5d0d3b63..82895db6373e85da077048cf2257332fb7e3b025 100644 (file)
@@ -28,7 +28,7 @@ sub async_next ($) {
                if (my $smsg = $ctx->{smsg} = $ctx->{cb}->($ctx)) {
                        $ctx->smsg_blob($smsg);
                } else {
-                       $ctx->{http_out}->write($ctx->translate('</feed>'));
+                       $ctx->write('</feed>');
                        $ctx->close;
                }
        };
@@ -38,7 +38,7 @@ sub async_next ($) {
 sub async_eml { # for async_blob_cb
        my ($ctx, $eml) = @_;
        my $smsg = delete $ctx->{smsg};
-       $ctx->{http_out}->write($ctx->translate(feed_entry($ctx, $smsg, $eml)))
+       $ctx->write(feed_entry($ctx, $smsg, $eml));
 }
 
 sub response {