[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg reopened HTTPCLIENT-2110:
-------------------------------

But the content type "application/octet-stream" is not unknown to this class, 
it well knowh in this context. The class has even a pre-defined static 
instanciation of this content type : APPLICATION_OCTET_STREAM.


It is not obvious why the content type "application/octet-stream" and 
"application/soap+xml" are "unknown" for this method and all the others are 
known.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to