mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +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.
|
// fileExists tries to report whether a local physical file of "filename" exists.
|
||||||
func fileExists(filename string) bool {
|
func fileExists(filename string) bool {
|
||||||
info, err := os.Stat(filename)
|
info, err := os.Stat(filename)
|
||||||
if os.IsNotExist(err) {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user