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

Make type detection smarter #112

Open
tusbar opened this issue Oct 23, 2018 · 0 comments
Open

Make type detection smarter #112

tusbar opened this issue Oct 23, 2018 · 0 comments

Comments

@tusbar
Copy link
Contributor

tusbar commented Oct 23, 2018

Today types are selected if – at least – one of the identified file types matches.

We should improve that and add some sort of type detection that ignores stuff like application/octet-stream and gives priority to text/html.

For example, if a foo.kmz file returns a list of types that includes text/html (with a 200 status code) we should probably not consider it as a kmz archive.

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

No branches or pull requests

1 participant