mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Don't send default headers if overridden by caller
This commit is contained in:
@ -2594,6 +2594,7 @@ if ($user) {
|
||||
$auth =~ tr/\r\n//d;
|
||||
push(@headers, [ "Authorization", "Basic $auth" ]);
|
||||
}
|
||||
@headers = grep { !$headers->{$_} } @headers;
|
||||
foreach my $hname (keys %$headers) {
|
||||
push(@headers, [ $hname, $headers->{$hname} ]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user