aboutsummaryrefslogtreecommitdiffstats
path: root/src/curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/curl.c')
-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 */