Skip to content

Commit

Permalink
LibWeb: Show "x86_64" in the user agent string on x86_64 :^)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Jul 1, 2021
1 parent 33260ea commit 56d25d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Userland/Libraries/LibWeb/Loader/ResourceLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 56d25d7

Please sign in to comment.