diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-02 15:08:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-02 15:08:25 +0000 |
commit | 22f180fd6c1f8186dea0ba4ee1451b5241051b5e (patch) | |
tree | 79361ec83e8f47c5585e4018b597889fd51599a8 | |
parent | f62f761936ed33fa89680f5d129db55bee610eb9 (diff) | |
download | busybox-w32-22f180fd6c1f8186dea0ba4ee1451b5241051b5e.tar.gz busybox-w32-22f180fd6c1f8186dea0ba4ee1451b5241051b5e.tar.bz2 busybox-w32-22f180fd6c1f8186dea0ba4ee1451b5241051b5e.zip |
wget: fix --header handling
-rw-r--r-- | networking/wget.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/networking/wget.c b/networking/wget.c index d782cc4fe..23143d511 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -417,15 +417,17 @@ int wget_main(int argc UNUSED_PARAM, char **argv) | |||
417 | KEY_content_length = 1, KEY_transfer_encoding, KEY_chunked, KEY_location | 417 | KEY_content_length = 1, KEY_transfer_encoding, KEY_chunked, KEY_location |
418 | }; | 418 | }; |
419 | enum { | 419 | enum { |
420 | WGET_OPT_CONTINUE = 0x1, | 420 | WGET_OPT_CONTINUE = (1 << 0), |
421 | WGET_OPT_SPIDER = 0x2, | 421 | WGET_OPT_SPIDER = (1 << 1), |
422 | WGET_OPT_QUIET = 0x4, | 422 | WGET_OPT_QUIET = (1 << 2), |
423 | WGET_OPT_OUTNAME = 0x8, | 423 | WGET_OPT_OUTNAME = (1 << 3), |
424 | WGET_OPT_PREFIX = 0x10, | 424 | WGET_OPT_PREFIX = (1 << 4), |
425 | WGET_OPT_PROXY = 0x20, | 425 | WGET_OPT_PROXY = (1 << 5), |
426 | WGET_OPT_USER_AGENT = 0x40, | 426 | WGET_OPT_USER_AGENT = (1 << 6), |
427 | WGET_OPT_PASSIVE = 0x80, | 427 | WGET_OPT_RETRIES = (1 << 7), |
428 | WGET_OPT_HEADER = 0x100, | 428 | WGET_OPT_NETWORK_READ_TIMEOUT = (1 << 8), |
429 | WGET_OPT_PASSIVE = (1 << 9), | ||
430 | WGET_OPT_HEADER = (1 << 10), | ||
429 | }; | 431 | }; |
430 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS | 432 | #if ENABLE_FEATURE_WGET_LONG_OPTIONS |
431 | static const char wget_longopts[] ALIGN1 = | 433 | static const char wget_longopts[] ALIGN1 = |
@@ -437,6 +439,10 @@ int wget_main(int argc UNUSED_PARAM, char **argv) | |||
437 | "directory-prefix\0" Required_argument "P" | 439 | "directory-prefix\0" Required_argument "P" |
438 | "proxy\0" Required_argument "Y" | 440 | "proxy\0" Required_argument "Y" |
439 | "user-agent\0" Required_argument "U" | 441 | "user-agent\0" Required_argument "U" |
442 | /* Ignored: */ | ||
443 | // "tries\0" Required_argument "t" | ||
444 | // "timeout\0" Required_argument "T" | ||
445 | /* Ignored (we always use PASV): */ | ||
440 | "passive-ftp\0" No_argument "\xff" | 446 | "passive-ftp\0" No_argument "\xff" |
441 | "header\0" Required_argument "\xfe" | 447 | "header\0" Required_argument "\xfe" |
442 | ; | 448 | ; |