all repos — flounder @ cb23e53f2726985ddb5ff7d839c743ac9c31e19f

A small site builder for the Gemini protocol

fix
alex wennerberg alex@alexwennerberg.com
Fri, 08 Jan 2021 00:34:57 -0800
commit

cb23e53f2726985ddb5ff7d839c743ac9c31e19f

parent

652babefefeb3473365809a8a13bf425472303c7

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M http.gohttp.go

@@ -33,8 +33,9 @@ func renderError(w http.ResponseWriter, errorMsg string, statusCode int) {

data := struct { StatusCode int ErrorMsg string - }{statusCode, errorMsg} - err := t.ExecuteTemplate(w, "error.html", data) + Config Config + }{statusCode, errorMsg, c} + err := t.ExecuteTemplate(w, "error.html", c) if err != nil { // Shouldn't happen probably http.Error(w, errorMsg, statusCode) }