Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Web-Machine CPAN distribution.

Report information
The Basics
Id: 104123
Status: new
Priority: 0/
Queue: Web-Machine

People
Owner: Nobody in particular
Requestors: rrwo [...] thermeon.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.