summaryrefslogtreecommitdiff
path: root/core/io/http_client_tcp.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-04 13:06:38 +0100
committerGitHub <noreply@github.com>2022-02-04 13:06:38 +0100
commit2e320dcf8796d77b6196ef93d4ea304bf5bcb3d4 (patch)
treec8ad853c2b28149f975b2728deac960097ae3288 /core/io/http_client_tcp.cpp
parentd235c1bb1964b80d776a64aa2a1b198a8e52bf72 (diff)
parent244db375087440888ca5b86fd0d114a54f41489a (diff)
Merge pull request #57617 from bruvzg/char_cleanup
Diffstat (limited to 'core/io/http_client_tcp.cpp')
-rw-r--r--core/io/http_client_tcp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/http_client_tcp.cpp b/core/io/http_client_tcp.cpp
index e61833ce7c..f920799677 100644
--- a/core/io/http_client_tcp.cpp
+++ b/core/io/http_client_tcp.cpp
@@ -614,7 +614,7 @@ PackedByteArray HTTPClientTCP::read_response_body_chunk() {
for (int i = 0; i < chunk.size() - 2; i++) {
char c = chunk[i];
int v = 0;
- if (c >= '0' && c <= '9') {
+ if (is_digit(c)) {
v = c - '0';
} else if (c >= 'a' && c <= 'f') {
v = c - 'a' + 10;