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

Remove query from img src URLs for MIME #54

Merged
merged 1 commit into from Mar 23, 2018
Merged

Conversation

pedrosanta
Copy link
Collaborator

Fixes the issue raised by @alecgibson on #53: images with URLs/src's with query strings make the MIME type lookup to incorrectly return "application/octet-stream" as the type.

This PR adds query string removal on image URLs for MIME type lookup purposes.

@pedrosanta pedrosanta merged commit 349e2cc into master Mar 23, 2018
@pedrosanta pedrosanta deleted the img-query-fix branch March 23, 2018 16:51
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 this pull request may close these issues.

None yet

1 participant