all repos — flounder @ 461036c5579c4f9e23c45e8d15499eea089b4f1c

A small site builder for the Gemini protocol

Re-add "saved" message

Accidentally removed it
alex wennerberg alex@alexwennerberg.com
Mon, 01 Feb 2021 18:17:25 -0800
commit

461036c5579c4f9e23c45e8d15499eea089b4f1c

parent

5cdcf08e2ddf5f8fc488a52de2349ddbe133139e

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

jump to
M http.gohttp.go

@@ -88,6 +88,7 @@ alert := ""

var warnings []string if r.Method == "POST" { // get post body + alert = "saved" r.ParseForm() fileText := r.Form.Get("file_text") // Web form by default gives us CR LF newlines.

@@ -766,7 +767,6 @@ // handle user files based on subdomain or custom domains

// also routes to proxy serveMux.HandleFunc("proxy."+hostname+"/", proxyGemini) serveMux.HandleFunc("/", userFile) - // login+register functions srv := &http.Server{ ReadTimeout: 5 * time.Second, WriteTimeout: 10 * time.Second,