summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Loader
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-01 12:15:52 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-01 12:15:52 +0200
commit56d25d721001f72bced2aa723d08a19eac9431fb (patch)
tree85fb794d58b661fa16dd6a03f3f922282200904a /Userland/Libraries/LibWeb/Loader
parent33260ea99b912a08ed5f6e774d9e289f2a9fd58c (diff)
downloadserenity-56d25d721001f72bced2aa723d08a19eac9431fb.zip
LibWeb: Show "x86_64" in the user agent string on x86_64 :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r--Userland/Libraries/LibWeb/Loader/ResourceLoader.h8
1 files changed, 7 insertions, 1 deletions
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)