Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.1, 4.1.0
-
None
-
Unknown
Description
HttpProducer.java line 781:
answer = new StringEntity(content, contentType, charset, false);
Here the third parameter should be contentEncoding (e.g. null). Not charset.
This will produce HTTP request having for example header:
Content-Encoding: utf-8
UTF-8 is not allowed Content-Encoding. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding.
Some http servers returns HTTP 415 Unsupported Media Type because of that.
Attachments
Issue Links
- is duplicated by
-
CAMEL-20099 Camel-http is creating invalid Content-Encoding header based on charset from Content-Type header
- Resolved
- links to