mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
Merge pull request #1805 from Kimbsen/master
Fix panic on macos when passing a certificate as []byte to iris.TLS()
This commit is contained in:
commit
10cb915d47
|
@ -517,7 +517,7 @@ func (su *Supervisor) shutdownOnInterrupt(ctx context.Context) {
|
|||
// fileExists tries to report whether a local physical file of "filename" exists.
|
||||
func fileExists(filename string) bool {
|
||||
info, err := os.Stat(filename)
|
||||
if os.IsNotExist(err) {
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user