Added option --user-agent.
This commit is contained in:
parent
79ffb95f05
commit
27f02d5f9f
7 changed files with 20 additions and 9 deletions
|
@ -73,9 +73,9 @@ static inline char *createUserAgent()
|
|||
}
|
||||
|
||||
|
||||
void Platform::init()
|
||||
void Platform::init(const char *userAgent)
|
||||
{
|
||||
m_userAgent = createUserAgent();
|
||||
m_userAgent = userAgent ? strdup(userAgent) : createUserAgent();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue