On 10/02/2012 03:15 PM, Rick Ford via RT wrote:
Show quoted text> Queue: CGI-Application-Dispatch
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=79890 >
>
> I probably could write a patch, but I'm not sure what the actual
> intent behind the code is.
>
> The most obvious solution is just to delete those lines. It looks
> like debugging code to me, and getting it to work where it is with
> $env instead of $ENV would be more work than it's worth.
>
> As for a test case, run a PSGI app and request a non-existent URL.
> You'll get a 404 and a warning "[Dispatch] ERROR: Resource not found"
> without the request URI.
Thanks for the reply, Rick,
I think it's useful for developers to see some context about why
dispatching failed. What do you think about this approach: ?
Update the signature for http_error(), so instead of this:
http_error($e)
We pass this:
http_error($env->{REQUEST_URI},$e)?
According to the PSGI spec, it should be there:
https://metacpan.org/module/PSGI
Mark