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

.pptx files sent with wrong content-type #172

Open
wolruf opened this issue Sep 9, 2016 · 2 comments
Open

.pptx files sent with wrong content-type #172

wolruf opened this issue Sep 9, 2016 · 2 comments
Labels

Comments

@wolruf
Copy link

wolruf commented Sep 9, 2016

Hello, downloading file from plik.root.gg with the .pptx extension, you get a content-type:application/zip
image001

@camathieu
Copy link
Member

camathieu commented Sep 12, 2016

Plik use golang http mime sniffer to resolve content types https://golang.org/pkg/net/http/#DetectContentType

We investigate if we can extend that behavior of if a better solution can be found but for now nothing straightforward stands out.
http://stackoverflow.com/questions/29838185/how-to-detect-additional-mime-type-in-golang

@camathieu camathieu added the bug label Jan 16, 2017
@camathieu
Copy link
Member

Looks likes new libraries are available today :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants