mirror of
https://github.com/curl/curl.git
synced 2026-07-23 14:17:20 +03:00
my_useragent: shorten user-agent
The built-in user-agent will now only say curl/[version] and nothing else in an attempt to decrease overhead in HTTP requests.
This commit is contained in:
parent
3ebcfdda36
commit
e7257dcf2e
1 changed files with 1 additions and 6 deletions
|
|
@ -39,12 +39,7 @@
|
|||
*/
|
||||
char *my_useragent(void)
|
||||
{
|
||||
char useragent[256]; /* we don't want a larger default user agent */
|
||||
|
||||
snprintf(useragent, sizeof(useragent),
|
||||
CURL_NAME "/" CURL_VERSION " (" OS ") " "%s", curl_version());
|
||||
|
||||
return strdup(useragent);
|
||||
return strdup( CURL_NAME "/" CURL_VERSION );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue