From 6eb7b481d81a7b3db00a522650d89bb8add58c38 Mon Sep 17 00:00:00 2001 From: Gianni Carafa Date: Thu, 2 Nov 2023 23:20:02 +0100 Subject: [PATCH] use fiber constant for statuscode --- handlers/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/proxy.go b/handlers/proxy.go index 3816437..4fe154c 100644 --- a/handlers/proxy.go +++ b/handlers/proxy.go @@ -24,7 +24,7 @@ func ProxySite(c *fiber.Ctx) error { body, _, resp, err := fetchSite(url, queries) if err != nil { log.Println("ERROR:", err) - c.SendStatus(500) + c.SendStatus(fiber.StatusInternalServerError) return c.SendString(err.Error()) }