X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=5cbd692b485123bc35dd06cf35b09849184cefbb;hp=ca4f7f233fc40eff7d6088fcb92a80cd5200db01;hb=f2f77d87fd956da619e2bed2b24c1542bafe0125;hpb=b27144fcce6ba4618b74787980acda91ee13763b diff --git a/src/main.c b/src/main.c index ca4f7f23..5cbd692b 100644 --- a/src/main.c +++ b/src/main.c @@ -247,6 +247,7 @@ main (int argc, char *const *argv) { "no-directories", no_argument, NULL, 19 }, { "no-host-directories", no_argument, NULL, 20 }, { "no-host-lookup", no_argument, NULL, 22 }, + { "no-http-keep-alive", no_argument, NULL, 28 }, { "no-parent", no_argument, NULL, 5 }, { "non-verbose", no_argument, NULL, 18 }, { "passive-ftp", no_argument, NULL, 11 }, @@ -385,6 +386,9 @@ hpVqvdkKsxmNWrHSLcFbEY:G:g:T:U:O:l:n:i:o:a:t:D:A:R:P:B:e:Q:X:I:w:", case 27: setval ("bindaddress", optarg); break; + case 28: + setval ("httpkeepalive", "off"); + break; case 'b': setval ("background", "on"); break; @@ -579,6 +583,9 @@ GNU General Public License for more details.\n")); case 'p': setval ("noparent", "on"); break; + case 'k': + setval ("httpkeepalive", "off"); + break; default: printf (_("%s: illegal option -- `-n%c'\n"), exec_name, *p); print_usage ();