summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-03-13 15:34:54 +0000
committerJason Woodward2005-03-13 15:34:54 +0000
commit5703aa462f1fd3bcca46ba0b450f57704900bbdf (patch)
treeb942e9ff4583e3c555e642800edc185485bad24a /src
parentbefcc493bef47c873c11072cb2bee313c9c6f471 (diff)
downloadslapt-get-5703aa462f1fd3bcca46ba0b450f57704900bbdf.tar.gz
added CURLOPT_FILETIME to libcurl calls so that ftp transfers have the modification date for checking whether the source is new or not (as opposed to the file size).
Diffstat (limited to 'src')
-rw-r--r--src/curl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/curl.c b/src/curl.c
index 5d056c2..15d3ca4 100644
--- a/src/curl.c
+++ b/src/curl.c
@@ -43,6 +43,7 @@ int download_data(FILE *fh,const char *url,size_t bytes,const rc_config *global_
#ifdef CURLOPT_HTTPAUTH
curl_easy_setopt(ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
#endif
+ curl_easy_setopt(ch, CURLOPT_FILETIME, 1 );
headers = curl_slist_append(headers, "Pragma: "); /* override no-cache */
@@ -135,6 +136,7 @@ char *head_request(const char *url){
#ifdef CURLOPT_HTTPAUTH
curl_easy_setopt(ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY );
#endif
+ curl_easy_setopt(ch, CURLOPT_FILETIME, 1 );
headers = curl_slist_append(headers, "Pragma: "); /* override no-cache */