Fix parsing URLs containing non ascii values

pull/1036/head
Levin Li 2021-06-05 12:57:17 +08:00
parent c9f04184fa
commit 04c6b40c50
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ Url::decodeString(std::string_view str)
auto s = str.substr(a, b - a);
out.append(s.data(), s.length());
auto c_code = str.substr(b + 1, 2);
int8_t c;
uint8_t c;
if (to_number(c_code, c, 16))
{
out += static_cast<std::string::value_type>(c);