t: Accept optional file:// prefix on W3m-control

master
Simon McVittie 2018-01-23 10:18:44 +00:00
parent f46e429d96
commit 4126840f8d
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ sub test_site5_w3mmode {
my $redirect = run_cgi(goto => 1, PATH_INFO => '/ikiwiki.cgi',
SCRIPT_NAME => '/cgi-bin/ikiwiki-w3m.cgi');
like($redirect, qr{^Content-type: text/plain\r?\n}m);
like($redirect, qr{^W3m-control: GOTO \Q$pwd\E/t/tmp/out/a/b/c/\r?\n}m);
like($redirect, qr{^W3m-control: GOTO (?:file://)?\Q$pwd\E/t/tmp/out/a/b/c/\r?\n}m);
}
sub test_site6_behind_reverse_proxy {