Skip to content

Commit 028fef6

Browse files
author
Stephane Landelle
committed
Who would write schemes not in lower case?!
1 parent 8ea73c6 commit 028fef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ning/http/client/providers/netty/util/HttpUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public static List<String> getNettyHeaderValuesByCaseInsensitiveName(HttpHeaders
4848
}
4949

5050
public static boolean isWebSocket(String scheme) {
51-
return WEBSOCKET.equalsIgnoreCase(scheme) || WEBSOCKET_SSL.equalsIgnoreCase(scheme);
51+
return WEBSOCKET.equals(scheme) || WEBSOCKET_SSL.equalsIgnoreCase(scheme);
5252
}
5353

5454
public static boolean isSecure(String scheme) {
55-
return HTTPS.equalsIgnoreCase(scheme) || WEBSOCKET_SSL.equalsIgnoreCase(scheme);
55+
return HTTPS.equals(scheme) || WEBSOCKET_SSL.equals(scheme);
5656
}
5757

5858
public static boolean isSecure(UriComponents uri) {

0 commit comments

Comments
 (0)