Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4906

Http Headers should ignore the case for "User-Agent"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.9, 2.6.6, 2.7.3
    • Fix Version/s: 2.7.4, 2.6.7, 3.0.0-milestone1
    • Component/s: Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Headers is using below code to setup the User-Agent header.

      if (!connection.getRequestProperties().containsKey("User-Agent")) {
      connection.addRequestProperty("User-Agent", Version.getCompleteVersionString());
      }
      

      As you know, http header should ignore the case, the fix should help CXF avoid sending more than one "User-Agent" header.

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              njiang Willem Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: