You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/05/02 13:11:00 UTC
[jira] [Created] (HTTPCORE-745) ContentType.create(String, NameValuePair...) should make a defensive copy of its input array
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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org