From 506ab9101762dceacbf8c58ad01b41508db83d16 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 7 Oct 2012 19:37:10 -0500 Subject: use Plack::Util::header_set instead of doing it manually --- t/basic.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/basic.t') diff --git a/t/basic.t b/t/basic.t index a7f66b4..d73f691 100644 --- a/t/basic.t +++ b/t/basic.t @@ -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'; @@ -33,6 +33,8 @@ test_psgi CONTENT + is($res->content, $rendered); + is($res->header('Content-Length'), length($rendered)); } { -- cgit v1.2.3-54-g00ecf