diff --git a/fs.go b/fs.go index c3e0443..444ae3c 100644 --- a/fs.go +++ b/fs.go @@ -32,7 +32,7 @@ type fileServer struct { } func (fs fileServer) ServeGemini(w ResponseWriter, r *Request) { - ServeFile(w, fs, r.URL.Path) + ServeFile(w, fs, path.Clean(r.URL.Path)) } // ServeFile responds to the request with the contents of the named file