hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1205) FileEntity(File file, ContentType contentType) does not allow the Content-Type to be unset once set
Date Sat, 16 Jun 2012 14:16:43 GMT

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

Sebb resolved HTTPCLIENT-1205.
------------------------------

    Resolution: Invalid

Yes, sorry, my bad
                
> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message