aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2003-10-16 02:23:45 +0000
committerJason Woodward2003-10-16 02:23:45 +0000
commit785a98d5242d9d0f8acc75aaf23bff1e71db6bf5 (patch)
tree5590941e6f7324ab6d655b5b0ed62ae40ed3114b
parent51444b1a54a47ae45bc1ba668e88867fd9e430de (diff)
downloadslapt-get-785a98d5242d9d0f8acc75aaf23bff1e71db6bf5.tar.gz
set curl user-agent as "slapt-get"
-rw-r--r--ChangeLog1
-rw-r--r--src/curl.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 14c3f91..5c8006c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
0.9.6c Oct 15, 2003
* patch data is now fetched from patches/PACKAGES.TXT instead of
parsing patches/FILE_LIST
+ * set curl user-agent as 'slapt-get'
0.9.6b Oct 14, 2003
* fixed bug when removing pkg by base pkg name and removepkg wouldn't find
diff --git a/src/curl.c b/src/curl.c
index f20fbdc..ebfd455 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -31,6 +31,7 @@ int download_data(FILE *fh,const char *url){
curl_easy_setopt(ch, CURLOPT_URL, url);
curl_easy_setopt(ch, CURLOPT_WRITEDATA, fh);
curl_easy_setopt(ch, CURLOPT_NOPROGRESS, 0);
+ curl_easy_setopt(ch, CURLOPT_USERAGENT, PROGRAM_NAME );
#if USE_CURL_PROGRESS == 0
curl_easy_setopt(ch, CURLOPT_PROGRESSFUNCTION, progress_callback);
#endif