summaryrefslogtreecommitdiff
path: root/modules/websocket
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-04 01:38:01 +0200
committerGitHub <noreply@github.com>2020-07-04 01:38:01 +0200
commitc020eea184b84ec9193f2bec5265bd72f4e86d24 (patch)
tree3b1184fee57c0f0c038030808b8264021523024a /modules/websocket
parent79b0a9ddfc41c5b9fe3bc903cab1001aefcedde2 (diff)
parent929b98d24b53789b3e3fbbae90aed0fe0e72b409 (diff)
Merge pull request #40092 from hinlopen/remove-find-last
Remove String::find_last (same as rfind)
Diffstat (limited to 'modules/websocket')
-rw-r--r--modules/websocket/websocket_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/websocket_client.cpp b/modules/websocket/websocket_client.cpp
index 3900180739..8feaa9af5a 100644
--- a/modules/websocket/websocket_client.cpp
+++ b/modules/websocket/websocket_client.cpp
@@ -66,7 +66,7 @@ Error WebSocketClient::connect_to_url(String p_url, const Vector<String> p_proto
}
// Port
- p_len = host.find_last(":");
+ p_len = host.rfind(":");
if (p_len != -1 && p_len == host.find(":")) {
port = host.substr(p_len, host.length() - p_len).to_int();
host = host.substr(0, p_len);