summaryrefslogtreecommitdiffstats
path: root/scene/main/http_request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/http_request.cpp')
-rw-r--r--scene/main/http_request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp
index a641ee9863..e46728dabc 100644
--- a/scene/main/http_request.cpp
+++ b/scene/main/http_request.cpp
@@ -89,7 +89,7 @@ String HTTPRequest::get_header_value(const PackedStringArray &p_headers, const S
String lowwer_case_header_name = p_header_name.to_lower();
for (int i = 0; i < p_headers.size(); i++) {
- if (p_headers[i].find(":") > 0) {
+ if (p_headers[i].find_char(':') > 0) {
Vector<String> parts = p_headers[i].split(":", false, 1);
if (parts.size() > 1 && parts[0].strip_edges().to_lower() == lowwer_case_header_name) {
value = parts[1].strip_edges();