Ask A Question

Notifications

You’re not receiving notifications from this thread.

Incorrect Content-Type Response Headers

Chong Hwi asked in Rails

Incorrect Content-Type response headers were found to be in use:
Content-Type: application/octet-stream is being used for PDF and Zip downloads.

How do I config the PDF and ZIP files to
Content-Type: application/pdf
Content-Type: application/zip

Reply

I need help please

Reply

Hey!

What's the context? I found with one of my apps, mp3 files were being uploaded to the server with different content-types... It turned out the OS and the browser was affecting them... On one computer it may upload as 'audio/mp3' on another the exact same file uploaded as 'audio/mpeg3'...

Is this being set on upload?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.