Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix CAMEL-12149 ensure the CONTENT_TYPE header can be retrieved #2179

Merged
merged 2 commits into from Jan 18, 2018
Merged

fix CAMEL-12149 ensure the CONTENT_TYPE header can be retrieved #2179

merged 2 commits into from Jan 18, 2018

Conversation

xldai
Copy link
Contributor

@xldai xldai commented Jan 17, 2018

No description provided.

@@ -164,6 +164,12 @@ protected void invokeAsyncHttpClient(Exchange exchange, final AsyncCallback call
setupClientMatrix(client, exchange);
setupClientQueryAndHeaders(client, exchange);

// ensure the CONTENT_TYPE header can be retrieved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the null on the other side as out standard with the Apache Camel code. Do you mind flipping them around.

@oscerd
Copy link
Contributor

oscerd commented Jan 17, 2018

Can't we use ObjectHelper?

@davsclaus
Copy link
Contributor

Yeah ObjectHelper.isEmpty would also check for an empty string, however not sure if you would have a Content-Type header that would be a "".

@xldai
Copy link
Contributor Author

xldai commented Jan 18, 2018

Claus, I made minor changes by using ObjectHelper, is that OK? or other concerns you may have?

@davsclaus davsclaus merged commit a37995c into apache:master Jan 18, 2018
Croway pushed a commit to Croway/camel that referenced this pull request Mar 14, 2024
[ENTESB-20951] Camel Mail Component doesn't use host/port information from session URI parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants