diff options
author | Eric Wong <e@80x24.org> | 2021-10-25 02:45:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-25 08:16:59 +0000 |
commit | ead71b8c387f0748338a4add37eeb437a14b02d8 (patch) | |
tree | 0cbe911f25039e743c189d567ac0dfc8190bd61f /lib/PublicInbox/WwwStream.pm | |
parent | b5454f38b1903735594e3c253617a66dd267062f (diff) | |
download | public-inbox-ead71b8c387f0748338a4add37eeb437a14b02d8.tar.gz |
This will let us modify the response header later to set a proper charset for Content-Type when displaying raw messages. Cc: Thomas Weißschuh <thomas@t-8ch.de>
Diffstat (limited to 'lib/PublicInbox/WwwStream.pm')
-rw-r--r-- | lib/PublicInbox/WwwStream.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm index 5be5ed0c..6d7c447f 100644 --- a/lib/PublicInbox/WwwStream.pm +++ b/lib/PublicInbox/WwwStream.pm @@ -32,7 +32,7 @@ sub init { sub async_eml { # for async_blob_cb my ($ctx, $eml) = @_; - $ctx->{http_out}->write($ctx->translate($ctx->{cb}->($ctx, $eml))); + $ctx->write($ctx->{cb}->($ctx, $eml)); } sub html_top ($) { @@ -187,8 +187,7 @@ sub async_next ($) { if (my $smsg = $ctx->{smsg} = $ctx->{cb}->($ctx)) { $ctx->smsg_blob($smsg); } else { - $ctx->{http_out}->write( - $ctx->translate(_html_end($ctx))); + $ctx->write(_html_end($ctx)); $ctx->close; # GzipFilter->close } }; |