FU: Fix typo in error handling

This commit is contained in:
Yorhel 2025-03-02 21:09:59 +01:00
parent f09a103c53
commit 7839e7df78

2
FU.pm
View file

@ -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;