Files
go2rtc/internal/api
Sergey Krashevich 7ac5b4f114 Ensure exit code is within valid range
The exitHandler function now properly validates the exit code provided
in the query string. It checks for conversion errors and ensures the
code is within the valid range of 0 to 125. If the validation fails,
it responds with an HTTP 400 Bad Request error. This prevents potential
misuse of the exit endpoint by restricting the exit codes to expected
values.
2023-11-29 10:03:39 +03:00
..
2023-08-20 09:57:46 +03:00
2023-11-29 10:03:39 +03:00
2023-08-26 07:13:59 +03:00
2023-06-29 22:08:17 +03:00
2023-05-01 12:55:14 +03:00