You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2020/08/21 18:03:00 UTC
[jira] [Comment Edited] (HTTPCLIENT-2110) Can not get content type
from string "application/octet-stream"
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182046#comment-17182046 ]
Oleg Kalnichevski edited comment on HTTPCLIENT-2110 at 8/21/20, 6:02 PM:
-------------------------------------------------------------------------
[~joergboe@de.ibm.com] Please see HTTPCORE-431 for context of why the method has been introduced. Probably this method should have never been made public in the first place.
Oleg
was (Author: olegk):
[~joergboe@de.ibm.com] Please see HTTPCORE-431 for context of why the method has been introduced. Probably this method should have never been made public in the first place.
Olwf
> Can not get content type from string "application/octet-stream"
> ---------------------------------------------------------------
>
> Key: HTTPCLIENT-2110
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2110
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Reporter: Joerg
> Priority: Minor
>
> I tried to get the org.apache.http.entity.ContentType from a string "application/octet-stream"
> but the following code delivers null:
> {color:#ff8b00}org.apache.http.entity.ContentType ctt = ContentType.getByMimeType("application/octet-stream");{color}
> But the reverse operation works as expected:
> {color:#ff8b00}String str = ContentType.APPLICATION_OCTET_STREAM.getMimeType();{color}
> {color:#172b4d}delivers the string "application/octet-stream"{color}
>
> {color:#172b4d}Any ideas why?{color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org