Subject: | handle_request call _clear, so print_response don't have nothing to print |
Upload.pm:
handle_request():
748 $self->print_response if $print;
749 $self->_clear;
If handle_request() is called with no args o 0, print_response() is called, and next, _clear().
_clear():
888 $self->{output} = undef;
_clear undefine 'output' key. Now:
print_response():
713 print "Content-type: $content_type\n\n";
714 print $self->output
and output() show the 'output' value, so print_response show nothing.
So, print_response() don't work like docs said.
Workround: use
handle_request(1);