1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/ftp/wget+ipv6/files/patch-retr.c
FUJISHIMA Satsuki 3e081cd251 add wget+ipv6, a bit old wget but capable to speak IPv6.
Due to radical development of wget, KAME patch would always not be released
in short. This port will happily retire when wget aquires ability to speak
IPv6 itself.
2001-12-17 05:15:58 +00:00

22 lines
751 B
C

--- src/retr.c.orig Wed Feb 9 00:18:45 2000
+++ src/retr.c Wed Feb 9 00:18:51 2000
@@ -445,7 +445,7 @@
recursive_reset ();
for (cur_url = url_list; cur_url; cur_url = cur_url->next, ++*count)
{
- char *filename, *new_file;
+ char *filename, *new_file, *referer;
int dt;
if (opt.quota && opt.downloaded > opt.quota)
@@ -453,7 +453,8 @@
status = QUOTEXC;
break;
}
- status = retrieve_url (cur_url->url, &filename, &new_file, NULL, &dt);
+ referer = getenv("referer");
+ status = retrieve_url (cur_url->url, &filename, &new_file, referer, &dt);
if (opt.recursive && status == RETROK && (dt & TEXTHTML))
status = recursive_retrieve (filename, new_file ? new_file : cur_url->url);