]> Sergey Matveev's repositories - public-inbox.git/commit
www: $MSGID/raw: set charset in HTTP response
authorEric Wong <e@80x24.org>
Mon, 25 Oct 2021 02:45:53 +0000 (02:45 +0000)
committerEric Wong <e@80x24.org>
Mon, 25 Oct 2021 08:17:01 +0000 (08:17 +0000)
commit7319f5d318a960eeb32a207d226eea7fd9ce2543
tree5fbdee2fc27a9c9546f96e0fabd846045f9f3e49
parentead71b8c387f0748338a4add37eeb437a14b02d8
www: $MSGID/raw: set charset in HTTP response

By using the charset specified in the message, web browsers are
more likely to display the raw text properly for human readers.

Inspired by a patch by Thomas Weißschuh:
  https://public-inbox.org/meta/20211024214337.161779-3-thomas@t-8ch.de/

Cc: Thomas Weißschuh <thomas@t-8ch.de>
lib/PublicInbox/GzipFilter.pm
lib/PublicInbox/Mbox.pm
t/plack.t
t/psgi_v2.t