Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8133686 HttpURLConnection.getHeaderFields and URLConnection.getRequestProperties methods return field values in reverse order
  3. JDK-8251890

Release Note: HttpURLConnection's getHeaderFields and URLConnection.getRequestProperties Methods Return Field Values in the Order They Were Added

    XMLWordPrintable

Details

    • Verified

    Description

      `URLConnection` has been fixed to return multiple header values for a given field-name in the order in which they were added.

      Previously, if a `URLConnection` contained multiple header values for a given header field-name, when retrieved by using the `HttpURLConnection::getHeaderFields` and the `URLConnection::getRequestProperties` methods, they would be returned in the reverse order to which they were added.

      This has been fixed to conform to RFC2616, which explicitly states that the order matters and thus, should be maintained.

      Attachments

        Activity

          People

            ewhelan Evan Whelan (Inactive)
            ewhelan Evan Whelan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: