mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-19 20:04:32 +09:00
api/v2: bound update-client request body
TestEveryRequestBodyIsBounded landed on main after the PR branched. Updates #3629
This commit is contained in:
1 parent
c660713a7c
commit
e0c6839c11
1 file changed
+1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user