1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

LibWeb: Use StringView in calls to Vector<String>::contains_slow()

This commit is contained in:
Karol Kosek 2023-08-22 19:23:32 +02:00 committed by Andreas Kling
parent 9663ccff77
commit fdb27c5851
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ ErrorOr<bool> tao_check(Infrastructure::Request const& request, Infrastructure::
auto values = TRY(response.header_list()->get_decode_and_split("Timing-Allow-Origin"sv.bytes()));
// 3. If values contains "*", then return success.
if (values.has_value() && values->contains_slow("*"_string))
if (values.has_value() && values->contains_slow("*"sv))
return true;
// 4. If values contains the result of serializing a request origin with request, then return success.