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

Fixing MIME type precedence #374

Merged
merged 1 commit into from Aug 18, 2018
Merged

Conversation

hairyhenderson
Copy link
Owner

@hairyhenderson hairyhenderson commented Aug 18, 2018

Fixes #370, closes #373

This defers the mime type calculation until it's actually necessary. I've also severely simplified (and eliminated uses of) NewSource. It can be deprecated/removed later. Also I've noticed that Ext and Params aren't used at all, and contain info that can be easily calculated from the URL. And most (all?) of the properties of the Source struct should be unexported. But those things can (will!) happen in a followup PR.

Signed-off-by: Dave Henderson dhenderson@gmail.com

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
@hairyhenderson hairyhenderson changed the title [WIP] Fixing MIME type precedence Fixing MIME type precedence Aug 18, 2018
@hairyhenderson hairyhenderson merged commit 7fce44e into master Aug 18, 2018
@hairyhenderson hairyhenderson deleted the fix-mime-type-precedence branch August 18, 2018 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overriding MIME Types doesn't work
1 participant