diff --git a/FU.pm b/FU.pm index 78c0fce..a0cd38e 100644 --- a/FU.pm +++ b/FU.pm @@ -288,7 +288,7 @@ sub _read_req($c) { # The HTTP reader above and the FastCGI XS reader operate on bytes. # Decode these into Unicode strings and check for special characters. - eval { FU::Util::utf8_decode($_); 1} || fu->err(400, $@) + eval { FU::Util::utf8_decode($_); 1} || fu->error(400, $@) for ($REQ->{path}, $REQ->{qs}, values $REQ->{hdr}->%*); ($REQ->{path}, my $qs) = split /\?/, $REQ->{path}//'', 2;