From: Daniel Stenberg Date: Sat, 12 May 2012 13:07:07 +0000 (+0200) Subject: my_useragent: shorten user-agent X-Git-Tag: curl-7_26_0~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7257dcf2eac075126999fed380f4015022c17b2;p=curl 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. --- diff --git a/src/tool_operhlp.c b/src/tool_operhlp.c index 7a98e350b..e45f102f5 100644 --- a/src/tool_operhlp.c +++ b/src/tool_operhlp.c @@ -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 ); } /*