X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Flive_engine_request_body.t;h=0abe1752d1f26dbfac839721a4de9a8bec4dfe1e;hb=4c71cf1b43594eabfee6e346a0a30b6dcf315b4f;hp=c6670da85e122b9d32b3dac70818017739dd5011;hpb=610bc6eccd3d749c9e14422575c3b8787f48fcf1;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/live_engine_request_body.t b/t/aggregate/live_engine_request_body.t index c6670da..0abe175 100644 --- a/t/aggregate/live_engine_request_body.t +++ b/t/aggregate/live_engine_request_body.t @@ -1,4 +1,3 @@ -#!perl use strict; use warnings; @@ -80,13 +79,13 @@ use HTTP::Request::Common; # 5.80 regression, see note in Catalyst::Plugin::Test::Plugin { my $request = GET( - 'http://localhost/have_req_body_in_prepare_action', + 'http://localhost/dump/response', 'Content-Type' => 'text/plain', 'Content' => 'x' x 100_000 ); ok( my $response = request($request), 'Request' ); ok( $response->is_success, 'Response Successful 2xx' ); - like( $response->content, qr/^[1-9]/, 'Has body' ); + ok( $response->header('X-Have-Request-Body'), 'X-Have-Request-Body set' ); }