Gary D. Gregory created HTTPCORE-745:
----------------------------------------

             Summary: ContentType.create(String, NameValuePair...) should make 
a defensive copy of its input array
                 Key: HTTPCORE-745
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-745
             Project: HttpComponents HttpCore
          Issue Type: Bug
          Components: HttpCore
    Affects Versions: 5.2.1
         Environment: Apache Maven 3.9.1 
(2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Maven home: C:\java\apache-maven-3.9.1
Java version: 1.8.0_372, vendor: Temurin, runtime: C:\Program Files\Eclipse 
Adoptium\jdk-8.0.372.7-hotspot\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
            Reporter: Gary D. Gregory


The factory method {{ContentType.create(String, NameValuePair...)}} should make 
a defensive copy of its input array.

Other code paths already do so, intentionally or by side-effect: 
{{ContentType.withParameters(NameValuePair...)}}





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to