about summary refs log tree commit homepage
path: root/t/view.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-30 09:13:21 +0000
committerEric Wong <e@80x24.org>2016-06-30 09:13:21 +0000
commite158d56a54d3c6d4890aa6ac4caa28a834279af0 (patch)
treec65de54c3d94ac1216de5161550063db0b6c2803 /t/view.t
parenteb2de0cded427c055e17237c3e23801082beef79 (diff)
downloadpublic-inbox-e158d56a54d3c6d4890aa6ac4caa28a834279af0.tar.gz
This encapsulates an entire PSGI response array, hopefully
making it easier to generate responses and avoid typos when
setting the Content-Type.
Diffstat (limited to 't/view.t')
-rw-r--r--t/view.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/view.t b/t/view.t
index 8a898feb..4fdd1518 100644
--- a/t/view.t
+++ b/t/view.t
@@ -34,7 +34,8 @@ sub msg_html ($) {
         my ($mime) = @_;
 
         my $s = '';
-        my $body = PublicInbox::View::msg_html($ctx, $mime);
+        my $r = PublicInbox::View::msg_html($ctx, $mime);
+        my $body = $r->[2];
         while (defined(my $buf = $body->getline)) {
                 $s .= $buf;
         }