diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-11 09:08:08 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-11 11:23:32 +0100 |
| commit | 2beaae4b6f1c4a2c3833a5e205157fd3be2fcabc (patch) | |
| tree | 96b7ca74ef9f48ecba1181edb5ae85fca557242a /core/io | |
| parent | 171a69757f575bbc55c686956097c7b4434ec1f8 (diff) | |
String: Remove `erase` method, bindings can't mutate String
Diffstat (limited to 'core/io')
| -rw-r--r-- | core/io/http_client.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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() { |