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

Set the HOST header in Http2ClientInitializer when trying to start an… #9177

Merged
merged 1 commit into from
May 27, 2019

Commits on May 23, 2019

  1. Set the HOST header in Http2ClientInitializer when trying to start an…

    … upgrade request
    
    Motivation:
    
    The io.netty.example.http2.helloworld.client.Http2Client example should work in the h2c (HTTP2 cleartext - non-TLS) mode, which is the default for this example unless you set a -Dssl VM param. As we do not set the HOST header some servers do reject the upgrade request.
    
    Modifications:
    
    Set the HOST header
    
    Result:
    
    Fixes #9115.
    normanmaurer committed May 23, 2019
    Configuration menu
    Copy the full SHA
    3392b11 View commit details
    Browse the repository at this point in the history