hg: jdk9/sandbox/jdk: 8145388: URLConnection.guessContentTypeFromStream returns image/jpg for some JPEG images

chris.hegarty at oracle.com chris.hegarty at oracle.com
Fri Dec 25 14:01:03 UTC 2015


Changeset: 3f00e1b74464
Author:    igerasim
Date:      2015-12-25 16:45 +0300
URL:       http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/3f00e1b74464

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
Contributed-by: ramanand.patil at oracle.com

! src/java.base/share/classes/java/net/URLConnection.java



More information about the jdk9-sandbox-changes mailing list