]>
Commit | Line | Data |
---|---|---|
d53fd18f | 1 | diff -Nurb wget-1.9.1.bef/src/http.c wget-1.9.1.new/src/http.c |
2 | --- wget-1.9.1.bef/src/http.c 2005-05-29 09:12:59.000000000 +0200 | |
3 | +++ wget-1.9.1.new/src/http.c 2005-05-29 12:43:11.000000000 +0200 | |
4 | @@ -818,8 +818,8 @@ | |
5 | } | |
6 | else | |
7 | range = NULL; | |
8 | - if (opt.useragent) | |
9 | - STRDUP_ALLOCA (useragent, opt.useragent); | |
10 | + if (opt.user_agent) | |
11 | + STRDUP_ALLOCA (useragent, opt.user_agent); | |
12 | else | |
13 | { | |
14 | useragent = (char *)alloca (10 + strlen (version_string)); | |
15 | diff -Nurb wget-1.9.1.bef/src/init.c wget-1.9.1.new/src/init.c | |
16 | --- wget-1.9.1.bef/src/init.c 2005-05-29 09:12:59.000000000 +0200 | |
17 | +++ wget-1.9.1.new/src/init.c 2005-05-29 12:44:38.000000000 +0200 | |
18 | @@ -218,7 +218,7 @@ | |
19 | { "timestamping", &opt.timestamping, cmd_boolean }, | |
20 | { "tries", &opt.ntry, cmd_number_inf }, | |
21 | { "useproxy", &opt.use_proxy, cmd_boolean }, | |
22 | - { "useragent", NULL, cmd_spec_useragent }, | |
23 | + { "useragent", &opt.user_agent, cmd_spec_useragent }, | |
24 | { "verbose", &opt.verbose, cmd_boolean }, | |
25 | { "wait", &opt.wait, cmd_time }, | |
26 | { "waitretry", &opt.waitretry, cmd_time } | |
27 | @@ -1203,7 +1203,7 @@ | |
28 | exec_name, com, val); | |
29 | return 0; | |
30 | } | |
31 | - opt.useragent = xstrdup (val); | |
32 | + opt.user_agent = xstrdup (val); | |
33 | return 1; | |
34 | } | |
35 | \f | |
36 | @@ -1345,7 +1345,7 @@ | |
37 | FREE_MAYBE (opt.https_proxy); | |
38 | FREE_MAYBE (opt.http_proxy); | |
39 | free_vec (opt.no_proxy); | |
40 | - FREE_MAYBE (opt.useragent); | |
41 | + FREE_MAYBE (opt.user_agent); | |
42 | FREE_MAYBE (opt.referer); | |
43 | FREE_MAYBE (opt.http_user); | |
44 | FREE_MAYBE (opt.http_passwd); | |
45 | diff -Nurb wget-1.9.1.bef/src/options.h wget-1.9.1.new/src/options.h | |
46 | --- wget-1.9.1.bef/src/options.h 2005-05-29 09:12:59.000000000 +0200 | |
47 | +++ wget-1.9.1.new/src/options.h 2005-05-29 12:39:53.000000000 +0200 | |
48 | @@ -137,7 +137,7 @@ | |
49 | int backup_converted; /* Do we save pre-converted files as *.orig? */ | |
50 | int backups; /* Are numeric backups made? */ | |
51 | ||
52 | - char *useragent; /* Naughty User-Agent, which can be | |
53 | + char *user_agent; /* Naughty User-Agent, which can be | |
54 | set to something other than | |
55 | Wget. */ | |
56 | char *referer; /* Naughty Referer, which can be |