Merge pull request #11199

b93ce60 common: handle case-insensitive Content-Range (Samy)

ACKs: jpk68, selsta
This commit is contained in:
tobtoht
2026-09-02 10:19:30 +00:00
+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;