From d725815ce7d8be2eaf1162ba7e5cee2051078e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 4 May 2025 15:30:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcontent=5Ftype=E8=AE=A1?= =?UTF-8?q?=E7=AE=97BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request/parse_body/execute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request/parse_body/execute.go b/request/parse_body/execute.go index 8f68fc3..e404d1d 100644 --- a/request/parse_body/execute.go +++ b/request/parse_body/execute.go @@ -55,7 +55,7 @@ func Execute(ctx *gin.Context, receiver any) ([]byte, error) { return nil, errors.New(contentType + " : content_type format error") } // 裁剪出真实的类型,之所以截取,是因为 content_type 中可能还包含编码信息, 如 : application/json;charset=utf8 - contentType = contentTypeArr[0] + contentType = contentTypeFormatArr[1] if _, exist := requestBodyParseAdaptorTable[contentType]; !exist { return nil, errors.New(contentType + " : adaptor not found") }