michaelrsweet/htmldoc

Possible error during peak moments

Closed this issue · 1 comments

Hello,

I'm using HTMLDOC from CGI for about 15 years and this has always ran fine. The HTML is offered to HTMLDOC, and it returns the PDF to the browser.

But recently we've seen a sudden error in the browser:

ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

No code has changed but the number of our users have recently grown significantly - easily several tens simultaneously.

The strange thing is that the response headers should only be those for PDF (as it's always been), so I'm thinking HTMLDOC could procude unexpected output (?). Would it be possible that HMTLDOC generates an 'overload' error (as non-pdf) on peak moments ?

The shortened CGI code is as follows:

$ENV{HTMLDOC_NOCGI} = 'yes';
select(STDOUT);
$| = 1;
print "Content-Type: application/pdf\n";
print "Content-Disposition:inline;filename=somename.pdf\n\n";
system "/usr/local/bin/htmldoc-t pdf /tmp/somefile.html";

I'ld like to take the opportunity to thank you for the great software that HTML undoubtedly is.

Bart

One strange side-effect of writing out a support request is that it sometimes gives an unexpected insight... I just discovered the error and it had nothing to do with memory but with a comma in the

filename=somename.pdf

Seems like I can't remove this ticket so I will just close it.

Bart