Skip to content

use createHttpClientCodec to use user defined parameters #257

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

Merged
merged 2 commits into from
Mar 18, 2013
Merged

use createHttpClientCodec to use user defined parameters #257

merged 2 commits into from
Mar 18, 2013

Conversation

vptheron
Copy link

The private method upgradeProtocol was not using user defined parameters when creating a new HttpClientCodec for netty.

@@ -1405,14 +1405,14 @@ private void upgradeProtocol(ChannelPipeline p, String scheme) throws IOExceptio

if (isSecure(scheme)) {
if (p.get(SSL_HANDLER) == null) {
p.addFirst(HTTP_HANDLER, new HttpClientCodec());
p.addFirst(HTTP_HANDLER, createHttpClientCodec);
Copy link
Contributor

Choose a reason for hiding this comment

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

missing ()

@slandelle
Copy link
Contributor

@vtheron Thanks for the PR. However, it's against 1.7.x while 1.7.12 was supposed to be the last release on this branch...

@vptheron
Copy link
Author

@slandelle ok. I thought 1.7.13 would be released eventually. I am using 1.7.x for my project and needed this fix.

slandelle pushed a commit that referenced this pull request Mar 18, 2013
use createHttpClientCodec to use user defined parameters
@slandelle slandelle merged commit 2fa75b4 into AsyncHttpClient:ahc-1.7.x Mar 18, 2013
@slandelle
Copy link
Contributor

I'll port your fix on master.

@slandelle
Copy link
Contributor

The problem actually exists only in 1.7.x. Yet another example of double maintenance mess.

cs-workco pushed a commit to cs-workco/async-http-client that referenced this pull request Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants