Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF not rendering. #3

Open
PritiKumr opened this issue Apr 12, 2017 · 1 comment
Open

PDF not rendering. #3

PritiKumr opened this issue Apr 12, 2017 · 1 comment

Comments

@PritiKumr
Copy link
Owner

No description provided.

@AndyGauge
Copy link

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"

AndyGauge added a commit to AndyGauge/rust-httpd that referenced this issue Apr 14, 2017
@AndyGauge AndyGauge mentioned this issue Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants