Skip to content

Commit 2c0d3c0

Browse files
committed
Support URL longer than 2GB bytes.
1 parent 328fdbb commit 2c0d3c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/URIParser.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ int URIParser::parse(const char *str, ParsedURI& uri)
245245
{
246246
uri.state = URI_STATE_INVALID;
247247

248-
int start_idx[URI_PART_ELEMENTS] = {0};
249-
int end_idx[URI_PART_ELEMENTS] = {0};
248+
size_t start_idx[URI_PART_ELEMENTS] = {0};
249+
size_t end_idx[URI_PART_ELEMENTS] = {0};
250250
int pre_state = URI_SCHEME;
251251
bool in_ipv6 = false;
252-
int i;
252+
size_t i;
253253

254254
for (i = 0; str[i]; i++)
255255
{

0 commit comments

Comments
 (0)