rust-httpd
rust-httpd copied to clipboard
PDF not rendering.
You will need some headers to render your pdf. If you match the extension of the file, you can build headers based on them. Files that you want rendered in the browser should have a Content-Type and Content-Disposition header. This should work:
Content-Type: application/pdf
Content-Disposition: inline; filename="pdffile.pdf"