Subject: | Plugin Assumes text/html and body |
When using this plugin with things like Catalyst::Action::REST, calling
authorization_required_response assumes that the output is always
text/html and that it should set body to 'Authenticaiton Required,
confusing REST, which normally sets content-type to the request
content-type and body to the empty rest entity for the given content-type.
Imho, this plugin should just get/set auth headers, and not futz with
body/content-type at all. Those aren't really the concerns of this plugin.