Brethren,
I am making Catalyst baby steps. During that struggle I tried to create a custom View component and set up the following code:
package ctest1::View::PDF;
use strict;
use base 'Catalyst::View';
sub process
{
print "Content-type: text/plain\n\n";
print "This is a test\n";
return 1;
}
1;
The good new with this is, that I see the output of it. The bad news is, there is more than that:
Content-type: text/plain
This is a test
HTTP/1.0 200 OK
Connection: keep-alive
Date: Sun, 26 Feb 2006 17:28:38 GMT
Set-Cookie: ctest1_session=1bcd798b2ab2d6805ccbc652c6341e39a97e9ef8; p
+ath=/; expires=Sun, 26-Feb-2006 19:28:38 GMT
Status: 200
X-Catalyst: 5.65
Obviously I am missing something, because I expected the output to be just:
This is a test
What am I doing wrong?