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

HTTP response headers are always set with HttpServletResponse.addHeader

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.10, 3.1.7, 3.2.0
    • Component/s: Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Headers utility class has the option either add headers with HttpServletResponse.addHeader or set headers with HttpServletResponse.setHeader (the default).
      The branch where headers are set still uses HttpServletResponse.addHeader.

      One concrete side-effect of it is that JAX-RS servers are required to set Date headers. As it happens, Jetty also sets it (Tomcat is OK) which leads to Date headers being duplicated.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              sergey_beryozkin Sergey Beryozkin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: