]> git.proxmox.com Git - pmg-api.git/commit
api: remove immediate download path returns
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 19 Sep 2024 13:19:37 +0000 (15:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Sep 2024 09:49:28 +0000 (11:49 +0200)
commitcc79fe414372baff6f2f52168581e3dbb2ae8b51
tree155a158188b77ac4b360c9f395b47fc72bc646d8
parenteb31e304d4e187a499eabe743caa3d02501d60bc
api: remove immediate download path returns

always return an object with a download member instead, like we do in PVE.
without this cleanup (and corresponding removal of the special handling in
PMG's HttpServer), endpoints that can either download or return data like the
task log one cannot accomodate the new stricter download endpoint checks in
pve-http-server.

since the download information is directly consumed by our HTTP stack and not
actually returned to the HTTP client, this is not a breaking change of the
return value, but just affects the internal implementation.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
src/PMG/API2/Backup.pm
src/PMG/API2/Quarantine.pm
src/PMG/HTTPServer.pm