FU: Fix warning when calling fu->set_header() with undef value
This commit is contained in:
parent
8b807e6dcf
commit
f2294a709a
1 changed files with 1 additions and 1 deletions
2
FU.pm
2
FU.pm
|
|
@ -728,7 +728,7 @@ sub reset {
|
|||
|
||||
sub _validate_header($hdr, $val) {
|
||||
confess "Invalid response header '$hdr'" if $hdr !~ /^$FU::hdrname_re$/;
|
||||
confess "Invalid attempt to set response header containing a newline" if $val =~ /[\r\n]/;
|
||||
confess "Invalid attempt to set response header containing a newline" if defined $val && $val =~ /[\r\n]/;
|
||||
}
|
||||
|
||||
sub add_header($, $hdr, $val) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue