1
0
mirror of synced 2025-12-18 16:34:09 +03:00

Use move semantics for auth key and value (#2306)

This commit is contained in:
Aaron Gokaslan
2025-12-13 22:53:10 -05:00
committed by GitHub
parent ae94d64f67
commit 681d388247

View File

@@ -6822,7 +6822,7 @@ inline bool parse_www_authenticate(const Response &res,
static_cast<size_t>(m.length(2)))
: s.substr(static_cast<size_t>(m.position(3)),
static_cast<size_t>(m.length(3)));
auth[key] = val;
auth[std::move(key)] = std::move(val);
}
return true;
}