Merge remote-tracking branch 'origin/master'
# Conflicts: # main.go
This commit is contained in:
@@ -64,7 +64,9 @@ func webp2jpg(path string, md5Path string, writer http.ResponseWriter) {
|
|||||||
|
|
||||||
resp, getErr := http.Get(path)
|
resp, getErr := http.Get(path)
|
||||||
if getErr != nil {
|
if getErr != nil {
|
||||||
log.Fatal(getErr)
|
log.Print(getErr)
|
||||||
|
writer.WriteHeader(404)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
endTime := time.Now().UnixNano()
|
endTime := time.Now().UnixNano()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user