]> Sergey Matveev's repositories - public-inbox.git/commit
wwwattach: support async blob retrievals
authorEric Wong <e@yhbt.net>
Sun, 5 Jul 2020 23:27:56 +0000 (23:27 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Jul 2020 20:01:15 +0000 (20:01 +0000)
commit6df377a693070bcbfa63b681f329a353457dbe7f
treec16cae63a78fd1da70cc0d82f70d52e572d137ae
parent6bcab55b2594368e5f8aad0badb8d51d5d8ba20f
wwwattach: support async blob retrievals

We can reuse some of the GzipFilter infrastructure used by other
WWW components to handle slow blob retrieval, here.  The
difference from previous changes is we don't decide on the 200
status code until we've retrieved the blob and found the
attachment.

While we're at it, ensure we can compress text attachment
responses once again, since all text attachments are served
as text/plain.
lib/PublicInbox/WwwAttach.pm
t/psgi_attach.t