mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
19 lines
513 B
C++
19 lines
513 B
C++
/*
|
|
* Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/Fetch/Infrastructure/HTTP.h>
|
|
#include <LibWeb/Loader/ResourceLoader.h>
|
|
|
|
namespace Web::Fetch::Infrastructure {
|
|
|
|
// https://fetch.spec.whatwg.org/#default-user-agent-value
|
|
ByteString default_user_agent_value()
|
|
{
|
|
// A default `User-Agent` value is an implementation-defined header value for the `User-Agent` header.
|
|
return ResourceLoader::the().user_agent().to_byte_string();
|
|
}
|
|
|
|
}
|