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

Ladybird: Update for removal of StringView(char const*)

This commit is contained in:
Andreas Kling 2022-07-12 23:35:34 +02:00 committed by Andrew Kaster
parent 80636d6779
commit 2bbf2dfb9a
2 changed files with 6 additions and 6 deletions

View file

@ -73,14 +73,14 @@ void RequestManagerQt::Request::did_finish()
for (auto& it : m_reply.rawHeaderPairs()) {
auto name = String(it.first.data(), it.first.length());
auto value = String(it.second.data(), it.second.length());
if (name.equals_ignoring_case("set-cookie")) {
if (name.equals_ignoring_case("set-cookie"sv)) {
set_cookie_headers.append(value);
} else {
response_headers.set(name, value);
}
}
if (!set_cookie_headers.is_empty()) {
response_headers.set("set-cookie", JsonArray { set_cookie_headers }.to_string());
response_headers.set("set-cookie"sv, JsonArray { set_cookie_headers }.to_string());
}
on_buffered_request_finish(success, buffer.length(), response_headers, http_status_code, ReadonlyBytes { buffer.data(), (size_t)buffer.size() });
}