|Subject:||PoCoCl::HTTP is loosing events when getting bad redirect|
In function POE::Component::Client::HTTP::_try_redirect response event invoked as $poe_kernel->yield( request => $request, $newrequest, "_redir_".$request->ID, $request->[REQ_PROG_POSTBACK], @proxy ); the second parameter is response event name, but set with PoCoCl::HTTP::Request object so if redirect url is bad (unsupported scheme, empty hostname) _poco_weeble_request function can't send request back because it expect event_name to be a string As solution I propose to check what is the event_name, if it is a string we can send response with kernel->post, if it is a PoCoCl::HTTP::Request object we can use it's postback to send response back to program. I'm sorry, I didn't provide a test case, but I hope I explained the problem well. I've attached patch with my solution.
Message body not shown because it is not plain text.