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

Headers are not set correctly in some situation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.4
    • Fix Version/s: 2.11.1, 2.12.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If I define a route like this:

      from("<MyUrl>/test")
      .setHeader(Exchange.HTTP_RESPONSE_CODE, simple("400"));
      my http client get a 200 response code.

      If a add something else on the route like:
      from("<MyUrl>/test")
      .setHeader(Exchange.HTTP_RESPONSE_CODE, simple("400"))
      .log("400").
      my http client get a 400 response code as expected.

      forum :
      http://camel.465427.n5.nabble.com/route-http-code-td5732728.html

        Attachments

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              clement tamisier clement tamisier

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment