diff --git a/modules/web/http_server_simple/http_server_simple.cpp b/modules/web/http_server_simple/http_server_simple.cpp index c2cd89de5..6e7038ded 100644 --- a/modules/web/http_server_simple/http_server_simple.cpp +++ b/modules/web/http_server_simple/http_server_simple.cpp @@ -247,7 +247,7 @@ void HTTPServerSimple::send_file(const String &p_file_path) { String req_ext = p_file_path.get_extension(); if (!mimes.has(req_ext)) { - const String ctype = mimes[req_ext]; + ctype = mimes[req_ext]; } else { ctype = "text/plain"; }