Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Oct 29, 2024
1 parent 80176bb commit b9f88d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ class HttpClientOperations extends HttpOperations<NettyInbound, NettyOutbound>
this.cookieList = new ArrayList<>();
if (c.channel() instanceof Http2StreamChannel) {
this.version = H2;
} else if (c.channel() instanceof SocketChannel) {
}
else if (c.channel() instanceof SocketChannel) {
HttpVersion version = this.nettyRequest.protocolVersion();
if (version.equals(HttpVersion.HTTP_1_0)) {
this.version = HttpVersion.HTTP_1_0;
Expand All @@ -190,7 +191,8 @@ else if (version.equals(HttpVersion.HTTP_1_1)) {
else {
throw new IllegalStateException(version.protocolName() + " not supported");
}
} else {
}
else {
this.version = H3;
}
this.trailerHeaders = Sinks.unsafe().one();
Expand Down

0 comments on commit b9f88d0

Please sign in to comment.