Properly handle non-ascii characters in uris in HTTPParser.

This commit is contained in:
Relintai 2023-03-22 13:59:58 +01:00
parent eb33d812d0
commit 1cb112f64c

View File

@ -267,7 +267,7 @@ int HTTPParser::on_message_begin() {
int HTTPParser::on_url(const char *at, size_t length) {
ERR_FAIL_COND_V(!_request.is_valid(), 0);
String s = chr_len_to_str(at, length);
String s = chr_len_to_str(at, length).uri_decode().strip_edges();
#if MESSAGE_DEBUG
ERR_PRINT("url " + s);