mirror of
https://github.com/veops/oneterm.git
synced 2025-11-03 01:33:30 +08:00
feat(backend): file transfer
This commit is contained in:
@@ -26,7 +26,7 @@ func Error2RespMiddleware() gin.HandlerFunc {
|
||||
// Skip middleware for session replay and file download endpoints
|
||||
urlPath := ctx.Request.URL.String()
|
||||
if strings.Contains(urlPath, "session/replay") ||
|
||||
strings.Contains(urlPath, "/file/download/") {
|
||||
strings.Contains(urlPath, "/download") {
|
||||
ctx.Next()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user