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

Camel Netty component should not intercept consumers with httpMethodRestrict=OPTIONS

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.1
    • Fix Version/s: 2.15.2, 2.16.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      HttpServerChannelHandler tries to provide default OPTIONS responses. This is nice feature, but if the httpMethodRestrict is explicitly set to OPTIONS, we Netty should allow to override the default responses.

      For example from("netty4-http:http://0.0.0.0:8080/foo?httpMethodRestrict=OPTIONS").setBody().constant("foo!") should return the foo response to the client.

        Attachments

          Activity

            People

            • Assignee:
              hekonsek Henryk Konsek
              Reporter:
              hekonsek Henryk Konsek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: