user no stays in cache forever, fix some hubs bugs and add new enpoints

This commit is contained in:
2026-05-04 14:03:02 +02:00
parent 22e2d18810
commit 015c79bf09
14 changed files with 260 additions and 34 deletions
+2
View File
@@ -41,6 +41,8 @@ func validCheckWithResponseOnFail(response http.ResponseWriter, request *http.Re
maxSize = int64(config.MaxRequestBytes)
}
request.Body = http.MaxBytesReader(response, request.Body, maxSize)
if request.ContentLength > maxSize {
io.Copy(io.Discard, request.Body)
http.Error(response, "Request too large", http.StatusRequestEntityTooLarge)