Skip to content

Commit

Permalink
A little more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sullo committed Aug 16, 2024
1 parent e5db7ab commit 7fe37d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions program/plugins/nikto_headers.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,8 @@ sub nikto_headers_postfetch {
# If multiple headers were sent with the same name, turn the array into a string for reporting
sub report_multiheaders {
my $header = $_[0] || return;
my $values;
if (ref($header) eq 'ARRAY') {
$values = join(',', @{$header});
return $values;
return join(',', @{$header});
}
else {
return $header;
Expand Down

0 comments on commit 7fe37d2

Please sign in to comment.