Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12787

Accept header is not respected anymore in CXFRS consumer when POST

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.21.1, 2.21.2, 2.22.0, 2.22.1
    • Fix Version/s: 2.21.3, 2.22.2, 2.23.0
    • Component/s: camel-cxfrs
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Given the camel route as a cxfrs server (test case is here: https://github.com/xldai/test/tree/master/cxfrs), Running the Route and send POST request from curl with "Accept: application/json", but the cxfrs server will always return application/xml as Response.

      Note this issue only happening on POST method, for GET, the Accept header is respected.

      No this kind of issue on Camel 2.20.x, Camel 2.21.0.

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              xldai Xilai Dai
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: