Skip to content
Snippets Groups Projects
Commit e7257dcf authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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.
parent 3ebcfdda
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment