Subject: | Improve documentation of content_types_provided and content_types_accepted |
Date: | Thu, 30 Apr 2015 11:31:38 +0100 |
To: | bug-Web-Machine [...] rt.cpan.org |
From: | Robert Rothenberg <rrwo [...] thermeon.com> |
content_types_provided needs a key, but for POST requests, it doesn't
execute the method. '1' is a good enough value. But if the key or method is
omitted, then it will return 'Not Acceptable'.
Likewise, content_types_accepted, if omitted, works fine for posts. If
provided, and the key does not exist the provided method, we get a warning
about undef methods:
Can't use an undefined value as a SCALAR reference at
/home/staff/rrwo/repos/thermeon_payment_providers/local/lib/perl5/Sub/Defer.pm
line 21.
but the method does not seem to be run.