flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 7d59dc82f611361c819542efefe6e3837814b013
parent e7f2afd6fb008016c0de9a4072eb61cc35fa573e
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Mon,  2 Nov 2020 07:15:44 -0800

Update dependencies

Diffstat:
Mgemini.go | 2++
Mgo.mod | 2+-
Mgo.sum | 2++
Mhttp.go | 2+-
4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gemini.go b/gemini.go @@ -52,6 +52,8 @@ func gmiPage(w *gmi.ResponseWriter, r *gmi.Request) { func runGeminiServer() { log.Println("Starting gemini server") var server gmi.Server + server.ReadTimeout = 1 * time.Minute + server.WriteTimeout = 2 * time.Minute hostname := strings.SplitN(c.Host, ":", 2)[0] // is this necc? diff --git a/go.mod b/go.mod @@ -3,7 +3,7 @@ module git.sr.ht/flounder go 1.15 require ( - git.sr.ht/~adnano/go-gemini v0.1.3 + git.sr.ht/~adnano/go-gemini v0.1.5 github.com/BurntSushi/toml v0.3.1 github.com/gorilla/handlers v1.5.1 github.com/gorilla/sessions v1.2.1 diff --git a/go.sum b/go.sum @@ -1,5 +1,7 @@ git.sr.ht/~adnano/go-gemini v0.1.3 h1:uClB4mzTkHBMKBde63/EzrsIhRuHxxaNHVRf1/gApXU= git.sr.ht/~adnano/go-gemini v0.1.3/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0= +git.sr.ht/~adnano/go-gemini v0.1.5 h1:zHTrQe47+ubCpGTEFgVVJ2Un2x17GAqyN1H5bghDEXc= +git.sr.ht/~adnano/go-gemini v0.1.5/go.mod h1:If1VxEWcZDrRt5FeAFnGTcM2Ud1E3BXs3VJ5rnZWKq0= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ= diff --git a/http.go b/http.go @@ -412,7 +412,7 @@ func userFile(w http.ResponseWriter, r *http.Request) { } file, _ := os.Open(fileName) - htmlString := textToHTML(gmi.Parse(file)) + htmlString := textToHTML(gmi.ParseText(file)) data := struct { SiteBody template.HTML PageTitle string