all repos — flounder @ ede64505c720b2a203f8b9ab8074daa4a4e3fb3b

A small site builder for the Gemini protocol

Add error handling, setup lock system
alex wennerberg alex@alexwennerberg.com
Sat, 12 Dec 2020 00:40:44 -0800
commit

ede64505c720b2a203f8b9ab8074daa4a4e3fb3b

parent

0c334fb679f6a4418ac74503b30014d660770349

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

jump to
M webdav.gowebdav.go

@@ -15,11 +15,13 @@ return

} user, pass, ok := r.BasicAuth() if ok && (checkAuth(user, pass) == nil) { - fmt.Println(user, pass) webdavHandler := webdav.Handler{ FileSystem: webdav.Dir(getUserDirectory(user)), Prefix: "/webdav/", - LockSystem: nil, //webdav.NewMemLS(), + LockSystem: webdav.NewMemLS(), + Logger: func(r *http.Request, e error) { + fmt.Println(e) + }, } webdavHandler.ServeHTTP(w, r) } else {