|Pathologically Eclectic Rubbish Lister|
Perl output is not inducing file download as expectedby Polyglot (Chaplain)
|on Sep 22, 2023 at 11:37 UTC||Need Help??|
Polyglot has asked for the wisdom of the Perl Monks concerning the following question:
I'm using the following subroutine to send a binary (PDF) file back to the client's browser.
The browser console sees a string of characters returning in the response, but no download dialogue is opened.
Why won't the browser just open the "Save as..." dialogue? As it stands, the browser appears to do nothing, silently dropping this activity in background. What is lacking in this code?