Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-745

ContentType.create(String, NameValuePair...) should make a defensive copy of its input array

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2.1
    • 5.3-alpha1
    • HttpCore
    • None

    Description

      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...)

      PR: https://github.com/apache/httpcomponents-core/pull/404

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h