bingos/poe-component-fastcgi — pull request #2 by Treeki (2011-10-09 20:44:48+00:00)
Title: Updated an error message and fixed a bug with Response->send

Hi! I hope these patches are useful :)

I updated the "wrong version" error message to state that it may be caused by a direct request from a web browser, and also fixed a bug that occurred when you explicitly called Response->send or Response->close inside a handler.

This issue is demonstrated in the code examples from PoCo::FastCGI's synopsis. FastCGI->_input automatically sends the response if $request->{_res} is defined, but that hash value is set to 0 if the response has been explicitly sent/closed. I've fixed this by checking for the truthiness of $request->{_res}, instead of the definedness of it.

Thanks.