X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhttpd-corner.psgi;h=cb41cfa0512d059a00382bc6683c3f0982bab80b;hb=f982abbaa39e07090d3fb641fd9de25434c0d74c;hp=44629620051eb52424675545f506d1691306ef2a;hpb=2bb3b3491416232a44ad8b318537c856cff727f4;p=public-inbox.git diff --git a/t/httpd-corner.psgi b/t/httpd-corner.psgi index 44629620..cb41cfa0 100644 --- a/t/httpd-corner.psgi +++ b/t/httpd-corner.psgi @@ -94,6 +94,13 @@ my $app = sub { return $qsp->psgi_return($env, undef, sub { [ 200, [ qw(Content-Type application/octet-stream)]] }); + } elsif ($path eq '/psgi-return-compressible') { + require PublicInbox::Qspawn; + my $cmd = [qw(echo goodbye world)]; + my $qsp = PublicInbox::Qspawn->new($cmd); + return $qsp->psgi_return($env, undef, sub { + [200, [qw(Content-Type text/plain)]] + }); } elsif ($path eq '/psgi-return-enoent') { require PublicInbox::Qspawn; my $cmd = [ 'this-better-not-exist-in-PATH'.rand ];