Исправить заголовок 413 и дополнить проверку отказов и масштабирования lab3

This commit is contained in:
Vladislav Agapov
2026-10-29 15:25:37 +03:00
parent 7b7e23fd02
commit f4ec74b78b
294 changed files with 29530 additions and 57 deletions
+2
View File
@@ -15,6 +15,8 @@ import (
// handleErr normalizes a failure and writes the public error envelope.
func (ctrl *Controller) handleErr(ctx *fiber.Ctx, err error) error {
// Parser failures such as BodyLimit rejection bypass request middleware.
ctx.Set("X-Instance-Id", ctrl.instanceID)
requestID := ctx.GetRespHeader(headerRequestID)
if requestID == "" {
requestID = uuid.NewString()