all repos — flounder @ 7d59dc82f611361c819542efefe6e3837814b013

A small site builder for the Gemini protocol

Update dependencies
alex wennerberg alex@alexwennerberg.com
Mon, 02 Nov 2020 07:15:44 -0800
commit

7d59dc82f611361c819542efefe6e3837814b013

parent

e7f2afd6fb008016c0de9a4072eb61cc35fa573e

4 files changed, 6 insertions(+), 2 deletions(-)

jump to
M gemini.gogemini.go

@@ -52,6 +52,8 @@

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?
M go.modgo.mod

@@ -3,7 +3,7 @@

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
M go.sumgo.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=
M http.gohttp.go

@@ -412,7 +412,7 @@ return

} file, _ := os.Open(fileName) - htmlString := textToHTML(gmi.Parse(file)) + htmlString := textToHTML(gmi.ParseText(file)) data := struct { SiteBody template.HTML PageTitle string