Update gin.go

This commit is contained in:
田欧 2019-02-20 14:16:42 +08:00 committed by GitHub
parent bc56933c15
commit db126fe342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
gin.go
View File

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