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

Compy goes wrong when compressing some images, which makes the images unable to load. #63

Open
Web-Distortion opened this issue Sep 9, 2020 · 0 comments

Comments

@Web-Distortion
Copy link
Contributor

Description:
Compy goes wrong when compressing some images, which makes the images unable to load.

Reason:
This is because Compy uses the content-type'' field in the HTTP response header to judge the type of the file. When some websites mistake thecontent-type'', Compy goes wrong!

Suggested fix:
A typical solution to this big is that Compy should judge the file type from the content (e.g., the header of the file) rather than merely using the content type.

Web-Distortion added a commit to Web-Distortion/compy that referenced this issue Sep 9, 2020
Web-Distortion added a commit to Web-Distortion/compy that referenced this issue Sep 9, 2020
the bug mentioned in barnacs#63 fixed
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