FU: Fix typo in error handling
This commit is contained in:
parent
f09a103c53
commit
7839e7df78
1 changed files with 1 additions and 1 deletions
2
FU.pm
2
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue