common: handle case-insensitive Content-Range

This commit is contained in:
Samy
2026-09-01 20:03:12 +02:00
parent 8e99188c5e
commit b93ce60e7a
+2 -1
View File
@@ -127,7 +127,8 @@ namespace tools
bool got_range = false;
for (const auto &kv: headers.m_header_info.m_etc_fields)
{
if (kv.first == "Content-Range" && tools::content_range_starts_at(kv.second, offset))
if (!epee::string_tools::compare_no_case(kv.first, "Content-Range") &&
tools::content_range_starts_at(kv.second, offset))
{
got_range = true;
break;