Sebb created HTTPCLIENT-1205:
--------------------------------

             Summary: 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