From 48cb8a0edef3fd5cf918a0057466644e9ffefedc Mon Sep 17 00:00:00 2001 From: justusbunsi <61625851+justusbunsi@users.noreply.github.com> Date: Mon, 11 Oct 2021 08:50:50 +0200 Subject: [PATCH] Handle favicon requests Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com> --- internal/api/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/api/main.go b/internal/api/main.go index 8a4581a..d6fb44c 100644 --- a/internal/api/main.go +++ b/internal/api/main.go @@ -74,5 +74,9 @@ func Serve(c *cli.Context) error { addSonarQubeEndpoint(r) addGiteaEndpoint(r) + r.GET("/favicon.ico", func(c *gin.Context) { + c.Status(http.StatusNoContent) + }) + return endless.ListenAndServe(":3000", r) }