[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13296144#comment-13296144
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1205:
-----------------------------------------------

Sebastian, but I am not sure I understand the problem. By default Content-Type 
header is null and one can always override the content type set at the 
construction time with #setContentType method.

Oleg
                
> FileEntity(File file, ContentType contentType) does not allow the 
> Content-Type to be unset once set
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1205
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1205
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.2 Final
>         Environment: FileEntity(File file, ContentType contentType) does not 
> allow the Content-Type to be unset once set, because the parameter is ignored 
> if it is null.
> The now deprecated ctor FileEntity(final File file, final String contentType) 
> stores the type without validation, so does allow the field to be set to null.
> For compatibility, the new ctor should store null if the ContentType 
> parameter is null.
>            Reporter: Sebb
>            Priority: Minor
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to