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 method now returns field values in the order they were added

    XMLWordPrintable

    Details

      Description

      `URLConnection` was 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, they would be returned in the reverse order to which they were added when retrieved via the `HttpURLConnection::getHeaderFields` and the `URLConnection::getRequestProperties` method.

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

        Attachments

          Activity

            People

            Assignee:
            ewhelan Evan Whelan
            Reporter:
            ewhelan Evan Whelan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: