flounder

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

commit 2f41293c600ccbfea6f24921d53fb64326d4ef85
parent 93954344eeec0b45c1912ccc8b5ddcfab4aa0a34
Author: alex wennerberg <awennerb@twitch.tv>
Date:   Tue,  9 Nov 2021 23:29:27 -0500

Minor finger server changes

Diffstat:
Mfinger.go | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/finger.go b/finger.go @@ -16,10 +16,9 @@ func runFingerServer() { log.Println("Starting finger server") s := &finger.Server{ Handler: finger.HandlerFunc(func(ctx context.Context, w io.Writer, q *finger.Query) { - log.Printf("Finger request: '%s'", q.Username) + log.Printf("finger request: %v", q) if q.Username == "" { - w.Write([]byte("You've found the flounder finger server. Welcome.\n")) - return + q.Username = "admin" // default to admin finger page } userName := filepath.Clean(q.Username) fullPath := path.Join(c.FilesDirectory, userName, "finger")