mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Return nil on 404
This commit is contained in:
parent
0fc34c0d33
commit
0ac97eee91
@ -60,7 +60,7 @@ func convert(c *fiber.Ctx) error {
|
|||||||
_ = c.Send([]byte(msg))
|
_ = c.Send([]byte(msg))
|
||||||
log.Warn(msg)
|
log.Warn(msg)
|
||||||
_ = c.SendStatus(404)
|
_ = c.SendStatus(404)
|
||||||
return errors.New(msg)
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate with timestamp to make sure files are update-to-date
|
// generate with timestamp to make sure files are update-to-date
|
||||||
|
Loading…
x
Reference in New Issue
Block a user