mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-30 01:10:06 +00:00
download handling: adapt to method schema field rename
check for both variants for now, and remove (old) alias with next major release Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
af9d2fe4f6
commit
c7ce508372
@ -987,7 +987,8 @@ sub handle_api2_request {
|
|||||||
$download = $res->{data}->{download}
|
$download = $res->{data}->{download}
|
||||||
if defined($res->{data}) && ref($res->{data}) eq 'HASH';
|
if defined($res->{data}) && ref($res->{data}) eq 'HASH';
|
||||||
if (defined($download)) {
|
if (defined($download)) {
|
||||||
if ($res->{info}->{download}) {
|
# TODO: remove ->{download} with PVE 9.0
|
||||||
|
if ($res->{info}->{download_allowed} || $res->{info}->{download}) {
|
||||||
send_file_start($self, $reqstate, $download);
|
send_file_start($self, $reqstate, $download);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user