Re: svn commit: r774658 - in /camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http: DefaultHttpBinding.java HttpHeaderFilterStrategy.java HttpProducer.java RequestEntityCo

2009-05-14 Thread Claus Ibsen
Willem Beware to do WARN logging in case it will log all the time +LOG.warn(Missing the ContentType in the request entity!); Its quite often not to set a Content-Type using camel http to just do a text/plain GET. So be sure that the http client sets a Content-Type if the end user

Re: svn commit: r774658 - in /camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http: DefaultHttpBinding.java HttpHeaderFilterStrategy.java HttpProducer.java RequestEntityCo

2009-05-14 Thread Willem Jiang
Hi Claus, if (methodToUse.isEntityEnclosing()) { ((EntityEnclosingMethod)method).setRequestEntity(requestEntity); if (requestEntity.getContentType() == null) { LOG.warn(Missing the ContentType in the request entity!); } } The Get method will be