From 1801c98866da8c0596012a10108d708709073eab Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Sun, 8 May 2022 01:34:42 +0200 Subject: [PATCH] fix: Pass empty data map to homepage render function --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index d5c576f..53c1cf1 100644 --- a/main.go +++ b/main.go @@ -104,7 +104,7 @@ func (h *Handler) HomepageHandler(wr http.ResponseWriter, req *http.Request) { wr.Write([]byte("https://" + os.Getenv("SHORTEN_HOST") + "/" + code)) } - Render(wr, nil) + Render(wr, map[string]string{}) } func (h *Handler) CreateHandler(wr http.ResponseWriter, req *http.Request) {