Subject: | Cannot explicitly request no body. Patch included |
Everything is here. This diff is against the current CPAN version because it was the only version I could figure out how to get a git copy of.
Essentially, C:A:REST only considers a small subset of the situations in which a request may have no body. This patch allows the user to stash a reference to undef to make this happen in any situation.
I recognise this may lead to invalid HTTP responses, since the spec presumably requires a body in certain situations, but caveat emptor.
https://github.com/Altreus/Catalyst-Action-REST/commit/7c34a43fba368ba9f6968d8e0f3ed2636c41d6f5