1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibWeb: Send User-Agent in HTTP requests

Coming soon to a Browser Market Share graph near you! :^)
This commit is contained in:
Andreas Kling 2020-05-21 12:58:57 +02:00
parent 897998017a
commit 63d98bbd76
4 changed files with 19 additions and 3 deletions

View file

@ -50,13 +50,16 @@ public:
Protocol::Client& protocol_client() { return *m_protocol_client; }
const String& user_agent() const { return m_user_agent; }
private:
ResourceLoader();
static bool is_port_blocked(int port);
int m_pending_loads { 0 };
RefPtr<Protocol::Client> m_protocol_client;
bool is_port_blocked(int port);
String m_user_agent;
};
}