[pbs-devel] applied: Re: [PATCH proxmox] rest-server: accept empty body as valid parameters

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Sep 7 18:15:33 CEST 2023


On 24/08/2023 12:22, Dominik Csapak wrote:
> technically an empty string is not valid json, but when sending an api
> request without any parameters, treating the empty body as an empty
> parameter hash instead of an error, makes the the api more robust for
> clients

yeah, it's practical to do that. While not directly related, we do the same
for the manager_status in the pve-ha-manager.

> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  proxmox-rest-server/src/rest.rs | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list