X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fpsgi_v2.t;h=7d73b606dbef5f0ad736cc57ddaef5b5d222e4b8;hp=64c1a8d38a0a5b842568657bde03d71175ec17a3;hb=7319f5d318a960eeb32a207d226eea7fd9ce2543;hpb=ead71b8c387f0748338a4add37eeb437a14b02d8 diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 64c1a8d3..7d73b606 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -20,11 +20,12 @@ To: test@example.com Subject: this is a subject Message-ID: Date: Fri, 02 Oct 1993 00:00:00 +0000 +Content-Type: text/plain; charset=iso-8859-1 hello world EOF my $new_mid; -my $ibx = create_inbox 'v2', version => 2, indexlevel => 'medium', +my $ibx = create_inbox 'v2-1', version => 2, indexlevel => 'medium', tmpdir => "$tmpdir/v2", sub { my ($im, $ibx) = @_; $im->add($eml) or BAIL_OUT; @@ -68,6 +69,8 @@ my $client0 = sub { like($res->content, qr!\$INBOX_DIR/description missing!, 'got v2 description missing message'); $res = $cb->(GET('/v2test/a-mid@b/raw')); + is($res->header('Content-Type'), 'text/plain; charset=iso-8859-1', + 'charset from message used'); $raw = $res->content; unlike($raw, qr/^From oldbug/sm, 'buggy "From_" line omitted'); like($raw, qr/^hello world$/m, 'got first message');