mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
LibWeb: Tweak our User-Agent string
- Switch from "Mozilla/4.0" to "Mozilla/5.0" to match other browsers. - Remove references to KHTML and Gecko. - Identify ourselves as "LibWeb+LibJS/1.0 Browser/1.0" New UA: "Mozilla/5.0 (SerenityOS; x86_64) LibWeb+LibJS/1.0 Browser/1.0"
This commit is contained in:
parent
97f622747b
commit
8f1a3f7878
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ namespace Web {
|
||||||
# define CPU_STRING "x86_64"
|
# define CPU_STRING "x86_64"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
constexpr auto default_user_agent = "Mozilla/4.0 (SerenityOS; " CPU_STRING ") LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb";
|
constexpr auto default_user_agent = "Mozilla/5.0 (SerenityOS; " CPU_STRING ") LibWeb+LibJS/1.0 Browser/1.0";
|
||||||
|
|
||||||
class ResourceLoader : public Core::Object {
|
class ResourceLoader : public Core::Object {
|
||||||
C_OBJECT_ABSTRACT(ResourceLoader)
|
C_OBJECT_ABSTRACT(ResourceLoader)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue