Camel
  1. Camel
  2. CAMEL-1609

Content type for HTTP not being send in header

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0, 2.0-M1
    • Fix Version/s: 1.6.1, 2.0-M2
    • Component/s: camel-http
    • Labels:
      None
    • Environment:

      MAC OSX (Leapord), Eclipse 3.4, TomCat 6

      Description

      I use the following route:

      final String spurl = protocols.get(0).getEpUrl();
      cc.addRoutes(new RouteBuilder()
      {
      public void configure()

      { from("direct:say") .setHeader(HttpConstants.HTTP_CONTENT_TYPE, constant("application/octet-stream")) .to(spurl); }

      });

      where "spurl" is the servlet URL endpoint. The messages are being sent to the servlet, but the content type in the "doPost(...)" is null.

        Activity

        Hide
        Claus Ibsen added a comment -

        Closing all 2.0M2 tickets

        Show
        Claus Ibsen added a comment - Closing all 2.0M2 tickets
        Hide
        Willem Jiang added a comment -
        Show
        Willem Jiang added a comment - Did some enhancement trunk http://svn.apache.org/viewvc?rev=774658&view=rev camel-1.x (camel 1.6.2) http://svn.apache.org/viewvc?rev=774672&view=rev
        Show
        Willem Jiang added a comment - trunk http://svn.apache.org/viewvc?rev=774383&view=rev camel-1.x http://svn.apache.org/viewvc?rev=774394&view=rev
        Hide
        Claus Ibsen added a comment -

        BTW a workaround is creating your own http header filter stategy and define it on the http component.

        See the camel http wiki page, the advanced section how to overload the http component and configure it in Spring XML (for instance)

        Show
        Claus Ibsen added a comment - BTW a workaround is creating your own http header filter stategy and define it on the http component. See the camel http wiki page, the advanced section how to overload the http component and configure it in Spring XML (for instance)
        Hide
        Claus Ibsen added a comment -

        This bug should also exist in Camel 1.6.0. It has been reported in FUSE MR 1.6.0.

        Willem is looking into it.

        Show
        Claus Ibsen added a comment - This bug should also exist in Camel 1.6.0. It has been reported in FUSE MR 1.6.0. Willem is looking into it.

          People

          • Assignee:
            Willem Jiang
            Reporter:
            Frank V. Castellucci
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development