From 86ef51ee3c3488ba431696da3883b56927c0a574 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 10 Feb 2012 10:52:44 +0100 Subject: fb-helper.c: clean up curl options; set follow location Signed-off-by: Florian Pritz --- fb-helper.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fb-helper.c b/fb-helper.c index 560e1e0..b2d6e66 100644 --- a/fb-helper.c +++ b/fb-helper.c @@ -316,8 +316,11 @@ int main(int argc, char *argv[]) /* bail if the upload stalls for 30 seconds */ - curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, (long)1); - curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, (long)30); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 30L); + + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L); /* save time for progress calculation */ gettimeofday(&cb_data.last, NULL); -- cgit v1.2.3-24-g4f1b