uri: fix parsing uppercased IPv6 addresses
Before this patch `uri.parse(<uri-string-with-ipv6-addres>)` did not work correctly. In particular, it did not parse an IPv6 address if it contained `A-F`. It is a regression caused by commit 1376aad9 ("Refactor src/uri.rl to support RFC3986 and add Lua bindings"). This patch fixes a bug where characters `A-F` are not supported in IPv6. Part of #9556 NO_DOC=bugfix (cherry picked from commit 2eefc56a3e08a60f0b71e33621be851794131546)
Showing
- changelogs/unreleased/gh-9556-fix-uri-ipv6.md 4 additions, 0 deletionschangelogs/unreleased/gh-9556-fix-uri-ipv6.md
- src/lib/uri/uri_parser.c 272 additions, 133 deletionssrc/lib/uri/uri_parser.c
- src/lib/uri/uri_parser.rl 2 additions, 2 deletionssrc/lib/uri/uri_parser.rl
- test/app-luatest/gh_9556_uri_parse_format_ipv6_test.lua 57 additions, 0 deletionstest/app-luatest/gh_9556_uri_parse_format_ipv6_test.lua
Loading
Please register or sign in to comment