in reply to Re: Displaying PDF files via CGI::Application
in thread Displaying PDF files via CGI::Application
Absolutely correct. CGI::Application has a special method for defining headers; if you don't follow it, it will send 'text/html' as the doctype.
To override the headers, the OP used the appropriate construct:
My only other suggestion to the OP is to look and see if another print statement might be happening somewhere earlier in the process -- try running the application from the command line and look at the output for any whitespace preceding the headers.
|
|---|