From e0c6839c11dd89ade497e3ecbdab3842de1ec903 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Tue, 3 Nov 2026 15:08:11 +0000 Subject: [PATCH] api/v2: bound update-client request body TestEveryRequestBodyIsBounded landed on main after the PR branched. Updates #3629 --- hscontrol/api/v2/devices.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hscontrol/api/v2/devices.go b/hscontrol/api/v2/devices.go index acbe6c543..d1918a5e7 100644 --- a/hscontrol/api/v2/devices.go +++ b/hscontrol/api/v2/devices.go @@ -523,6 +523,7 @@ func registerDevices(api huma.API, b Backend) { Tags: []string{"Devices"}, Security: security, DefaultStatus: http.StatusOK, + MaxBodyBytes: maxBodyBytes, Errors: []int{ http.StatusUnauthorized, http.StatusForbidden, http.StatusNotFound, http.StatusConflict, http.StatusBadGateway, http.StatusGatewayTimeout,