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

Content type for HTTP not being send in header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0, 2.0-M1
    • 1.6.1, 2.0-M2
    • camel-http
    • None
    • 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.

      Attachments

        Activity

          People

            njiang Willem Jiang
            frankc Frank V. Castellucci
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: