hg: jdk8u/jdk8u-dev/jdk: 8145388: URLConnection.guessContentTypeFromStream returns image/jpg for some JPEG images
sean.coffey at oracle.com
sean.coffey at oracle.com
Tue Feb 2 14:17:50 UTC 2016
Changeset: 9d4e8b341e60
Author: rpatil
Date: 2016-02-02 18:30 +0530
URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/9d4e8b341e60
8145388: URLConnection.guessContentTypeFromStream returns image/jpg for some JPEG images
Summary: Since "image/jpg" is not a valid Content Type, the method should return "image/jpeg" when APPn marker segment has 'EE' as a marker type.
Reviewed-by: prr, bpb
! src/share/classes/java/net/URLConnection.java
More information about the jdk8u-dev-changes
mailing list