mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
default filemode is 644, remove x bit for a png file. Fix #26
This commit is contained in:
parent
3caea2da38
commit
0b0da3b46c
@ -56,7 +56,7 @@ func WebpEncoder(p1, p2 string, quality float32, Log bool, c chan int) (err erro
|
||||
ChanErr(c)
|
||||
return
|
||||
}
|
||||
if err = ioutil.WriteFile(p2, buf.Bytes(), 0755); err != nil {
|
||||
if err = ioutil.WriteFile(p2, buf.Bytes(), 0644); err != nil {
|
||||
log.Error(err)
|
||||
ChanErr(c)
|
||||
return
|
||||
|
0
pics/webp_server.png
Executable file → Normal file
0
pics/webp_server.png
Executable file → Normal file
Before Width: | Height: | Size: 263 KiB After Width: | Height: | Size: 263 KiB |
Loading…
x
Reference in New Issue
Block a user