Claus Ibsen created CAMEL-27920:
-----------------------------------
Summary: camel-netty-http: a proxy:host:port URI becomes an https
endpoint
Key: CAMEL-27920
URL: https://issues.apache.org/jira/browse/CAMEL-27920
Project: Camel
Issue Type: Bug
Components: camel-netty-http
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-netty-http for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31180).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. A proxy:host:port URI becomes an https endpoint
{{NettyHttpComponent.createEndpoint}}: a URI written as proxy:host:port
(without //) does not start with "http:", so the else branch builds "https://"
+ remaining.substring(6) and the proxy endpoint becomes https with ssl on.
Proposed change: add a "proxy:" branch that builds "proxy://" + substring(6).
h4. 2. Smaller issues
chunkedMaxContentLength and mapHeaders are labelled consumer, but apply to the
producer too; synchronous applies only to the producer. The CamelHttpMethod
header has defaultValue GET, but the producer sends POST when the message has a
body. maxHeaderSize, maxInitialLineLength and maxChunkSize only reach the
server decoder; the client uses the Netty defaults. The component option
configuration takes a NettyHttpConfiguration.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)