proofgeist / mfm-http

A single script that can handle all HTTP requests with Filemaker
21 stars 5 forks source link

Add support for "inline" content-disposition or content-type application/pdf #8

Open davegraham92120 opened 4 weeks ago

davegraham92120 commented 4 weeks ago

Anvil sends back binary data using a content-disposition header of "inline". I'm not sure why they don't use "attachment".

Instead of treating "inline" content-disposition as binary data I just looked for a response content-type header of "application/pdf". Not sure if this is the best way to handle it. Here's the changes that worked for Anvil: image

davegraham92120 commented 3 weeks ago

On second thought, rather than add a bunch of exceptions in code, maybe just add an override parameter?