Skip to content

Commit b4a7eb3

Browse files
committed
🎸 Increase request body size to 10MB
1 parent a6e99a5 commit b4a7eb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

initialization/routes.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ func InitRoute() {
1919
}
2020
gin.SetMode(mode)
2121
ginEngine := gin.New()
22-
22+
// 增加请求体大小限制为 10MB
23+
ginEngine.MaxMultipartMemory = 10 << 20
2324
ginEngine.Use(
2425
// 启用CORS中间件
2526
middleware.Cors(),

0 commit comments

Comments
 (0)