diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-05-12 15:07:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-05-12 15:07:07 +0200 |
commit | e7257dcf2eac075126999fed380f4015022c17b2 (patch) | |
tree | 9383d1efeff1129e78dc67c677f9028da459ac09 /src/tool_operhlp.c | |
parent | 3ebcfdda36afeec0119c7f4f3fd8a37c5f9b37eb (diff) | |
download | curl-e7257dcf2eac075126999fed380f4015022c17b2.tar.gz |
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.
Diffstat (limited to 'src/tool_operhlp.c')
-rw-r--r-- | src/tool_operhlp.c | 7 |
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 ); } /* |