From e7257dcf2eac075126999fed380f4015022c17b2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 May 2012 15:07:07 +0200 Subject: 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. --- src/tool_operhlp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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 ); } /* -- cgit v1.2.3