]> git.proxmox.com Git - pve-http-server.git/commit
allow 'download' to be passed from API handler
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 21 Apr 2021 11:15:35 +0000 (13:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Apr 2021 15:42:01 +0000 (17:42 +0200)
commit6d832dbcedf59baf4cd0afed5403154e165aafe1
tree5f147144bb40f75b8ae8b3d6da66d8d233a84c5e
parente22eccff313987d3a18972641988ade124311bbb
allow 'download' to be passed from API handler

PVE::HTTPServer in pve-manager wraps the API return value in a 'data'
element, look for a 'download' element there too to allow an API call to
instruct the HTTP server to return a file via path or filehandle.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/APIServer/AnyEvent.pm