aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-05-12 15:07:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-05-12 15:07:07 +0200
commite7257dcf2eac075126999fed380f4015022c17b2 (patch)
tree9383d1efeff1129e78dc67c677f9028da459ac09
parent3ebcfdda36afeec0119c7f4f3fd8a37c5f9b37eb (diff)
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.
-rw-r--r--src/tool_operhlp.c7
1 files changed, 1 insertions, 6 deletions
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 );
}
/*