Minor changes & fixes
This commit is contained in:
parent
8096de7497
commit
13271fa413
3 changed files with 8 additions and 11 deletions
5
FU.pm
5
FU.pm
|
|
@ -694,7 +694,6 @@ sub json {
|
|||
$FU::REQ->{json} ||= eval {
|
||||
FU::Util::json_parse($FU::REQ->{body}, utf8 => 1)
|
||||
} || fu->error(400, "JSON parse error: $@");
|
||||
return $FU::REQ->{json} if !@_;
|
||||
_getfield $FU::REQ->{json}, @_;
|
||||
}
|
||||
|
||||
|
|
@ -945,7 +944,7 @@ __END__
|
|||
|
||||
=head1 NAME
|
||||
|
||||
FU - Framework Ultimatum: A Lean and Efficient Zero-Dependency Web Framework.
|
||||
FU - A Lean and Efficient Zero-Dependency Web Framework.
|
||||
|
||||
=head1 EXPERIMENTAL
|
||||
|
||||
|
|
@ -1481,8 +1480,6 @@ Encode C<$data> as JSON (using C<json_format> in L<FU::Util>), set an
|
|||
appropriate C<Content-Type> header and send it to the client. Calls C<<
|
||||
fu->done >>.
|
||||
|
||||
I<TODO:> Support schema-based normalization.
|
||||
|
||||
=item fu->send_file($root, $path)
|
||||
|
||||
If a file identified by C<"$root/$path"> exists, set that as response and call
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue