aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-ws/src/main')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
index 23223c0e..2b69ea7d 100644
--- a/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
+++ b/juick-ws/src/main/java/com/juick/ws/WebsocketComponent.java
@@ -7,7 +7,6 @@ import com.juick.server.protocol.ProtocolListener;
import com.juick.service.MessagesService;
import com.juick.service.SubscriptionService;
import com.juick.service.UserService;
-import org.apache.commons.lang3.CharEncoding;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.http.NameValuePair;
@@ -27,6 +26,7 @@ import javax.inject.Inject;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
+import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -65,7 +65,7 @@ public class WebsocketComponent extends TextWebSocketHandler implements Protocol
// Auth
User visitor = new User();
- List<NameValuePair> params = URLEncodedUtils.parse(hLocation, CharEncoding.UTF_8);
+ List<NameValuePair> params = URLEncodedUtils.parse(hLocation, StandardCharsets.UTF_8);
for (NameValuePair param : params) {
if (param.getName().equals("hash")) {
String hash = param.getValue();