diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-07 19:37:10 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-07 19:37:10 -0500 |
commit | 506ab9101762dceacbf8c58ad01b41508db83d16 (patch) | |
tree | c599056482475b39f5752c0b11837086c6ec1c42 /t | |
parent | 57f2ee7f5cc328b892a6172ef750e34d90c7f092 (diff) | |
download | plack-middleware-xslate-506ab9101762dceacbf8c58ad01b41508db83d16.tar.gz plack-middleware-xslate-506ab9101762dceacbf8c58ad01b41508db83d16.zip |
use Plack::Util::header_set instead of doing it manually
Diffstat (limited to 't')
-rw-r--r-- | t/basic.t | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,7 +21,7 @@ test_psgi { my $res = $cb->(GET '/index.html'); ok($res->is_success) || diag($res->content); - is($res->content, <<'CONTENT'); + my $rendered = <<'CONTENT'; <!DOCTYPE html> <html> <head> @@ -33,6 +33,8 @@ test_psgi </body> </html> CONTENT + is($res->content, $rendered); + is($res->header('Content-Length'), length($rendered)); } { |