Merge branch 'master' into camel-case-env-mode

This commit is contained in:
田欧 2019-02-22 11:56:07 +08:00 committed by GitHub
commit e198f346af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
gin.go
View File

@ -318,6 +318,7 @@ func (engine *Engine) RunUnix(file string) (err error) {
return
}
defer listener.Close()
os.Chmod(file, 0777)
err = http.Serve(listener, engine)
return
}