Skip to content

Commit

Permalink
web_browser: allow Strict-Transport-Security in a case insensitive way
Browse files Browse the repository at this point in the history
  • Loading branch information
tjyrinki committed Feb 28, 2025
1 parent d56fb36 commit db659f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_browser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sub run_web_browser_text_based {
enter_cmd "clear";

if ($browser ne "links") {
validate_script_output("$browser $options $https_url{$p}", sub { m/.*200 OK.*Strict-Transport-Security.*/s });
validate_script_output("$browser $options $https_url{$p}", sub { m/.*200 OK.*(?i)Strict-Transport-Security.*/s });
} else {
my $output_file = "webpage.txt";
assert_script_run "$browser $options $https_url{$p} > $output_file";
Expand Down

0 comments on commit db659f6

Please sign in to comment.