From 9808e30cb90e4045fb95d614e577e76c0c1e945a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=9A=D0=BE=D0=BC=D0=B8?= =?UTF-8?q?=D1=81=D1=81=D0=B0=D1=80=D0=BE=D0=B2?= Date: Mon, 28 Apr 2025 14:17:17 +0300 Subject: [PATCH] =?UTF-8?q?MSP-2267=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B5=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B8=D1=81=D0=BA=20=D0=BF=D0=BE=20=D0=B1=D0=B0=D0=B9?= =?UTF-8?q?=D1=82=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middleware/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/logger.go b/middleware/logger.go index 335b59f..71b0dae 100644 --- a/middleware/logger.go +++ b/middleware/logger.go @@ -125,7 +125,7 @@ func Logger( // nolint:gocognit } if logBodyFromCurrenRequest { - if enableForceUnescapingUnicode && strings.Contains(string(buf.RequestBody()), "\\u") { + if enableForceUnescapingUnicode && bytes.Contains(buf.RequestBody(), []byte("\\u")) { fields = append(fields, log.ByteString("request", forceUnescapingUnicode(buf.RequestBody()))) } else { fields = append(fields, log.ByteString("request", buf.RequestBody()))