Skip to content

Commit c8a4c58

Browse files
committed
Cosmetic, fix braket
1 parent 137aba2 commit c8a4c58

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ private static HttpRequest construct(AsyncHttpClientConfig config,
786786
/**
787787
* TODO: AHC-78: SSL + zero copy isn't supported by the MultiPart class and pretty complex to implements.
788788
*/
789-
789+
790790
if (isSecure(uri)) {
791791
ChannelBuffer b = ChannelBuffers.dynamicBuffer(lenght);
792792
mre.writeRequest(new ChannelBufferOutputStream(b));
@@ -2399,19 +2399,16 @@ public void onClose(ChannelHandlerContext ctx, ChannelStateEvent e) {
23992399
}
24002400
}
24012401

2402-
private static boolean isWebSocket(URI uri)
2403-
{
2402+
private static boolean isWebSocket(URI uri) {
24042403
return WEBSOCKET.equalsIgnoreCase(uri.getScheme()) || WEBSOCKET_SSL.equalsIgnoreCase(uri.getScheme());
24052404
}
24062405

2407-
private static boolean isSecure(String scheme)
2408-
{
2409-
return HTTPS.equalsIgnoreCase(scheme) || WEBSOCKET_SSL.equalsIgnoreCase(scheme);
2406+
private static boolean isSecure(String scheme) {
2407+
return HTTPS.equalsIgnoreCase(scheme) || WEBSOCKET_SSL.equalsIgnoreCase(scheme);
24102408
}
24112409

2412-
private static boolean isSecure(URI uri)
2413-
{
2414-
return isSecure(uri.getScheme());
2410+
private static boolean isSecure(URI uri) {
2411+
return isSecure(uri.getScheme());
24152412
}
24162413
}
24172414

0 commit comments

Comments
 (0)