]> sjero.net Git - wget/blobdiff - src/retr.c
[svn] Make sure opt.dfp is rewound only on the first retrieval.
[wget] / src / retr.c
index 5207e54d6719fa6796d882558df483c8625021f3..95e663fa4f52d9f438ffdbd4ff438564f3fe6a6d 100644 (file)
@@ -54,6 +54,9 @@ LARGE_INTEGER internal_time;
 static long internal_secs, internal_msecs;
 #endif
 
+/* See the comment in gethttp() why this is needed. */
+int global_download_count;
+
 void logflush PARAMS ((void));
 
 /* From http.c.  */
@@ -572,6 +575,8 @@ retrieve_url (const char *origurl, char **file, char **newloc,
   else
     xfree (url);
 
+  ++global_download_count;
+
   return result;
 }