We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae6218 commit c2d6ceaCopy full SHA for c2d6cea
src/com/codebutler/android_websockets/WebSocketClient.java
@@ -52,6 +52,9 @@ public void run() {
52
int port = (mURI.getPort() != -1) ? mURI.getPort() : (mURI.getScheme().equals("wss") ? 443 : 80);
53
54
String path = TextUtils.isEmpty(mURI.getPath()) ? "/" : mURI.getPath();
55
+ if (!TextUtils.isEmpty(mURI.getQuery())) {
56
+ path += "?" + mURI.getQuery();
57
+ }
58
59
String originScheme = mURI.getScheme().equals("wss") ? "https" : "http";
60
URI origin = new URI(originScheme, mURI.getSchemeSpecificPart(), null);
0 commit comments