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.
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 the
content-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.