5
0
mirror of git://git.proxmox.com/git/pve-http-server.git synced 2026-01-30 20:34:29 +03:00
Nicolas Frey 5c9e4ea773 apiserver: check if file is directory before opening
Add a check for if the file being accessed is a directory.
This improves the error relayed to the user, which - when mistakenly
trying to access a directory instead of a file - would return:

`unable to detect content type at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 499.`

Signed-off-by: Nicolas Frey <n.frey@proxmox.com>
Link: https://lore.proxmox.com/20251015080330.45927-3-n.frey@proxmox.com
2026-01-14 14:56:47 +01:00
2025-10-21 18:49:15 +02:00
Description
No description provided
1.1 MiB
Languages
Perl 98.4%
Makefile 1.6%