projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ebcfdd
)
my_useragent: shorten user-agent
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 12 May 2012 13:07:07 +0000
(15:07 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 12 May 2012 13:07:07 +0000
(15:07 +0200)
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
patch
|
blob
|
history
diff --git
a/src/tool_operhlp.c
b/src/tool_operhlp.c
index 7a98e350ba5444f56cb98a553703cdc1a4d8cb10..e45f102f5de5c3e37211092976b5579466f25990 100644
(file)
--- 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 );
}
/*