From 2beaae4b6f1c4a2c3833a5e205157fd3be2fcabc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 11 Nov 2021 09:08:08 +0100 Subject: String: Remove `erase` method, bindings can't mutate String --- core/io/http_client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/io/http_client.cpp') diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp index 5c1352c1b6..800ac779e5 100644 --- a/core/io/http_client.cpp +++ b/core/io/http_client.cpp @@ -85,8 +85,7 @@ String HTTPClient::query_string_from_dict(const Dictionary &p_dict) { } } } - query.erase(0, 1); - return query; + return query.substr(1); } Dictionary HTTPClient::_get_response_headers_as_dictionary() { -- cgit v1.2.3