On Wed, 15 Oct 2025 10:03:28 +0200, Nicolas Frey wrote:
> I ran into this when I accidentally went to the path /pve-docs/api-viewer
> instead of /pve-docs/api-viewer/index.html, where I got this error:
>
> `unable to detect content type at /usr/share/perl5/PVE/APIServer/AnyEvent.pm
> line 499.`
>
> Which IMO was not very telling of the underlying mistake I had made.
> This patch aims to improve this error message by checking if the
> queried file is a directory and returning a more descriptive
> message to the user.
>
> [...]
Applied, both patches, thanks!
[1/2] apiserver: fix typo
commit: a6f85919f5776e32eab2091f027d353f6fb1051f
[2/2] apiserver: check if file is directory before opening
commit: 5c9e4ea773364bdb7ae0e2faec5750fe58129a47
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel