Nicola Ferraro created CAMEL-15287:
--------------------------------------
Summary: Non-uniform way to handle nulls in http clients
Key: CAMEL-15287
URL: https://issues.apache.org/jira/browse/CAMEL-15287
Project: Camel
Issue Type: Bug
Reporter: Nicola Ferraro
Suppose you have an external Quarkus service that replies always with null.
When calling it from a camel route via:
{code:java}
.to("http://quarkus-service/null-api") {code}
Then the body of the exchange is null.
But if we use:
{code:java}
.to("netty-http:http://quarkus-service/null-api"){code}
Then the body becomes an empty InputStream, which is not null.
I don't know what's the correct way to handle such cases, but we should try to
uniform them.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)