in reply to Download PDF
At this point, you can just make it:print 'Content-Type: ', 'application/pdf' || 'application/force-downlo +ad', "\n";
Since 'application/pdf' is a true value, the || will always evaluate to that value, and never look at the right hand side (RHS). The RHS was there originally because the LHS was a method call which could potentially fail, so the RHS was a backup/default. But now that the LHS is a string literal, the backup is unnecessary.print 'Content-Type: ', 'application/pdf', "\n";
|
|---|