Skip to content

Commit

Permalink
🎸 Increase request body size to 10MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Cairry committed Dec 31, 2024
1 parent a6e99a5 commit b4a7eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion initialization/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func InitRoute() {
}
gin.SetMode(mode)
ginEngine := gin.New()

// 增加请求体大小限制为 10MB
ginEngine.MaxMultipartMemory = 10 << 20
ginEngine.Use(
// 启用CORS中间件
middleware.Cors(),
Expand Down

0 comments on commit b4a7eb3

Please sign in to comment.