Support URL longer than 2GB bytes. (#1796)

This commit is contained in:
xiehan
2025-11-21 19:19:54 +08:00
committed by GitHub
parent cb04492a16
commit c41812bb63
+3 -3
View File
@@ -245,11 +245,11 @@ int URIParser::parse(const char *str, ParsedURI& uri)
{
uri.state = URI_STATE_INVALID;
int start_idx[URI_PART_ELEMENTS] = {0};
int end_idx[URI_PART_ELEMENTS] = {0};
size_t start_idx[URI_PART_ELEMENTS] = {0};
size_t end_idx[URI_PART_ELEMENTS] = {0};
int pre_state = URI_SCHEME;
bool in_ipv6 = false;
int i;
size_t i;
for (i = 0; str[i]; i++)
{