]> git.proxmox.com Git - pve-http-server.git/commit
handler: only allow downloads for annotated endpoints
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 19 Sep 2024 13:19:44 +0000 (15:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Sep 2024 15:25:22 +0000 (17:25 +0200)
commite1f830d1e3666cd38fa90a3ca2fb2b66f7187bad
treebdc2327e3ffea0715208272be4f079ca59e88ad5
parent9ecc949c682146d141584a9aa6358c828a248496
handler: only allow downloads for annotated endpoints

only a few API endpoints should allow downloads, mark them explicitly and
forbid downloading for the rest.

Fixes: 6d832db ("allow 'download' to be passed from API handler")
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/APIServer/AnyEvent.pm