mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 23:51:37 +02:00
common: handle case-insensitive Content-Range
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user