X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=tests%2FTest-N-HTTP-Content-Disposition.px;h=ab8cea82b8d7a5304f2b31645105d48854726b97;hp=8c5e4181ef7abd344d952a9e0dfee2256f84f329;hb=320cfdcb658e8d6556ae9dfd902c2db1db866a6b;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/tests/Test-N-HTTP-Content-Disposition.px b/tests/Test-N-HTTP-Content-Disposition.px index 8c5e4181..ab8cea82 100755 --- a/tests/Test-N-HTTP-Content-Disposition.px +++ b/tests/Test-N-HTTP-Content-Disposition.px @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl use strict; +use warnings; use HTTPTest; @@ -25,7 +26,8 @@ my %urls = ( }, ); -my $cmdline = $WgetTest::WGETPATH . " -N http://localhost:8080/dummy.txt"; +my $cmdline = $WgetTest::WGETPATH . " -N --content-disposition " + . "http://localhost:{{port}}/dummy.txt"; my $expected_error_code = 0; @@ -39,9 +41,9 @@ my %expected_downloaded_files = ( ############################################################################### my $the_test = HTTPTest->new (name => "Test-N-HTTP-Content-Disposition", - input => \%urls, - cmdline => $cmdline, - errcode => $expected_error_code, + input => \%urls, + cmdline => $cmdline, + errcode => $expected_error_code, output => \%expected_downloaded_files); exit $the_test->run();