Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
None
-
None
-
None
Description
I tried to get the org.apache.http.entity.ContentType from a string "application/octet-stream"
but the following code delivers null:
org.apache.http.entity.ContentType ctt = ContentType.getByMimeType("application/octet-stream");
But the reverse operation works as expected:
String str = ContentType.APPLICATION_OCTET_STREAM.getMimeType();
delivers the string "application/octet-stream"
Any ideas why?