Bug#507821: Can't locate object method "send_http_header" via package "Apache2::RequestRec"

Joey Schulze joey at infodrom.org
Wed Dec 3 14:38:27 UTC 2008


Package: libapache2-mod-perl2
Version: 2.0.4-4

The documentation for ModPerl::Registry contains the example:

         my $r = Apache2::RequestUtil->request;
         $r->content_type("text/html");
         $r->send_http_header;
         $r->print("mod_perl rules!");

However, this results in the following output in the error log file:

Can't locate object method "send_http_header" via package "Apache2::RequestRec"

The call to send_http_header is not required (anymore) since
the method content_type already prints out the content type
to the web server.

Regards,

	Joey

-- 
If you come from outside of Finland, you live in wrong country.
	-- motd of irc.funet.fi

Please always Cc to me when replying to me on the lists.





More information about the pkg-perl-maintainers mailing list