Willem Jiang wrote:
greenstar wrote:
willem.jiang wrote:
I did some refactoring on current DefaultHttpBinding[1], now you can
override the populateMessageHeader in your HttpBinding.
[1] https://issues.apache.org/activemq/browse/CAMEL-2673
Perhaps DefaultHttpBinding should be changed to leave
"application/x-www-form-urlencoded" POST bodies intact (of course it can
still propagate form params to the camel message headers). This would be
similar to the current querystring param behavior: these get
propagated to
the camel message, but they don't get stripped from the "original"
querystring. Any downsides to this? The upside is less intrusive
message
modifications which can be pretty destructive to proxying applications.
I agree with you and will cache the InputSteam before calling the
Request.getParameterNames().
Willem
I committed a patch for it[1], please check out the last camel
2.3-SNAPSHOT for verification.
[1]https://issues.apache.org/activemq/browse/CAMEL-2679
Willem