]> git.street.me.uk Git - andy/viking.git/commitdiff
Allow redirects when attempting to download DEM files.
authorRob Norris <rw_norris@hotmail.com>
Sun, 15 Jan 2017 15:20:47 +0000 (15:20 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sun, 22 Jan 2017 18:23:05 +0000 (18:23 +0000)
src/vikdemlayer.c

index f6977e79d3d0372672bc579a48e9af744c40a2fe..3225c3bc3c1cb4fc26de54c2d2778f7599e424af 100644 (file)
@@ -956,7 +956,7 @@ static void srtm_dem_download_thread ( DEMDownloadParams *p, gpointer threaddata
                (intlon >= 0) ? 'E' : 'W',
                ABS(intlon) );
 
-  static DownloadFileOptions options = { FALSE, FALSE, NULL, 0, a_check_map_file, NULL, NULL };
+  static DownloadFileOptions options = { FALSE, FALSE, NULL, 5, a_check_map_file, NULL, NULL };
   DownloadResult_t result = a_http_download_get_url ( src_url, NULL, p->dest, &options, NULL );
   switch ( result ) {
     case DOWNLOAD_PARAMETERS_ERROR: