Set socket to recieve writes (#1134)

* Set socket to recieve writes

* Update gin.go
This commit is contained in:
Mara Kim 2019-02-21 22:45:32 -05:00 committed by 田欧
parent e6886e1539
commit 4e86b17e73
1 changed files with 1 additions and 0 deletions

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
}