summaryrefslogtreecommitdiff
path: root/core/io/http_client.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-11 13:00:21 +0100
committerGitHub <noreply@github.com>2021-11-11 13:00:21 +0100
commit1aa3c8419b2405d81d04f4fb3ac142fcd355de85 (patch)
treecb9c9b08941468bc4f7a6aa50e0464ce70b1c03f /core/io/http_client.cpp
parent51c8e4429b85b4c39302b8cc9e5a97137b0ad430 (diff)
parent2beaae4b6f1c4a2c3833a5e205157fd3be2fcabc (diff)
Merge pull request #54869 from akien-mga/string-remove-erase
Diffstat (limited to 'core/io/http_client.cpp')
-rw-r--r--core/io/http_client.cpp3
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() {