From 7839e7df787331a01447bd3d31329f9261bb5414 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 2 Mar 2025 21:09:59 +0100 Subject: [PATCH] FU: Fix typo in error handling --- FU.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;