in reply to Re: Test HTTP::Daemon
in thread Test HTTP::Daemon
The reason you're probably getting that undefined error is because the HTTP version is sent in the request, like> Otherwise, it gave me an undefined value error in > HTTP::Daemon (the sub where it checks for a HTTP version > less than 1.0. Odd.) Putting in the my $r = > $nd->get_request() line fixed everything right up.
So, internally, when that request gets read in, HTTP::Daemon probably reads the HTTP version and does the checking to see if it's greater than 1.0. If you've never received a request, that value isn't set, thus you get an unitialized value warning.GET /foo HTTP/1.0
|
|---|