- Fix calling MyApp->engine_class to set the engine class manually.
+ - Re-add a $res->headers->{status} field to Catalyst::Test responses.
+ This _should_ be accessed with $c->res->code instead, but is here
+ for backward compatibility.
+
Documentation:
- Documentation which was in the now removed Catalyst::Engine::* classes
* Test::WWW::Mechanize::Catalyst new release
- * CatalystX::CRUD 0.51 is broken, but works against latest master.
-
* Test nginx middleware to determine if it is needed with:
root app - with use_request_uri_for_path
for my $f ( $h->header_field_names ) {
$resp->init_header( $f, [ $h->header($f) ] );
}
+ # Another horrible hack to make the response headers have a
+ # 'status' field. This is for back-compat, but you should
+ # call $resp->code instead!
+ $resp->init_header('status', [ $resp->code ]);
},
}, @_);
}
request(GET('/dummy'), []);
} 'array additional param to request method ignored';
+my $res = request(GET('/'));
+is $res->code, 200, 'Response code 200';
+is $res->headers->{status}, 200, 'Back compat "status" header present';
+
done_testing;