From 56d25d721001f72bced2aa723d08a19eac9431fb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 1 Jul 2021 12:15:52 +0200 Subject: LibWeb: Show "x86_64" in the user agent string on x86_64 :^) --- Userland/Libraries/LibWeb/Loader/ResourceLoader.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/Loader') diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.h b/Userland/Libraries/LibWeb/Loader/ResourceLoader.h index 867825c44d..2829b0cb24 100644 --- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.h +++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.h @@ -17,7 +17,13 @@ class RequestClient; namespace Web { -constexpr auto default_user_agent = "Mozilla/4.0 (SerenityOS; x86) LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb"; +#if ARCH(I386) +# define CPU_STRING "x86" +#else +# define CPU_STRING "x86_64" +#endif + +constexpr auto default_user_agent = "Mozilla/4.0 (SerenityOS; " CPU_STRING ") LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb"; class ResourceLoader : public Core::Object { C_OBJECT(ResourceLoader) -- cgit v1.2.3