Hi.
I found a bug.
When accepted_content_types is empty, preferred_content_type is empty,
preferred_content_type constraint ( isa => "Str" ) is failed.
lwp-request http://127.0.0.1:3000/Action-REST_enabled_action/<ID>/item
Caught exception in CatApp::Web::Controller::Root->setup "Attribute
(preferred_content_type) does not pass the type constraint because:
Validation failed for 'Str' with value undef at reader Moose::Meta::...
I make patch for fix.
lib/Catalyst/TraitFor/Request/REST.pm
sub _build_preferred_content_type { $_[0]->accepted_content_types->[0]
// "" }
Thanks.