Don't send default headers if overridden by caller

This commit is contained in:
Jamie Cameron
2019-10-06 22:25:34 -07:00
parent a1c9fa94fc
commit e4d4ed51de

View File

@ -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} ]);
}