> Actually now that I've looked at it, I think the problem is actually in 
> CGI::Application not ::Server.  The query object is initialized in new() 
> shouldn't this actually happen in run()?

I would say the bug is here, in CGI::Application::Server

 if (!defined blessed $target) {
            return $self->_serve_response($target->new->run);
 } else {
        # Missing line:
        $target->cgiapp_get_query;
            return $self->_serve_response($target->run);
 }

The calling of cgiapp_get_query *is* delayed until run()... really until the
first time you call "query()". There is no way to detect you need a fresh query
object.  The server needs to take care of that. 

    Mark



#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to