2024-04-19 16:50:48 +02:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// SPDX-FileCopyrightText: © 2015 LabStack LLC and Echo contributors
|
|
|
|
|
2023-03-17 13:20:20 +01:00
|
|
|
//go:build !windows
|
|
|
|
|
|
|
|
package middleware
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
|
|
|
// We ignore these errors as there could be handler that matches request path.
|
|
|
|
func isIgnorableOpenFileError(err error) bool {
|
|
|
|
return os.IsNotExist(err)
|
|
|
|
}
|