mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-09-18 09:31:57 +00:00
chore: revert skip validate
This commit is contained in:
parent
b8031475db
commit
92cc7dd569
@ -120,7 +120,7 @@ func InitV2Router() http.Handler {
|
||||
// jump validate when upload file
|
||||
// because file upload can't pass validate
|
||||
// issue: https://github.com/deepmap/oapi-codegen/issues/514
|
||||
return strings.Contains(c.Request().URL.RawPath, "file")
|
||||
return strings.Contains(c.Request().Header[echo.HeaderContentType][0], "multipart/form-data")
|
||||
},
|
||||
Options: openapi3filter.Options{AuthenticationFunc: openapi3filter.NoopAuthenticationFunc},
|
||||
}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user