use fiber constant for statuscode
This commit is contained in:
@@ -24,7 +24,7 @@ func ProxySite(c *fiber.Ctx) error {
|
|||||||
body, _, resp, err := fetchSite(url, queries)
|
body, _, resp, err := fetchSite(url, queries)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("ERROR:", err)
|
log.Println("ERROR:", err)
|
||||||
c.SendStatus(500)
|
c.SendStatus(fiber.StatusInternalServerError)
|
||||||
return c.SendString(err.Error())
|
return c.SendString(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user