diff --git a/servefile.go b/servefile.go index 5af65cac604eecb0b89a4049cf500568a1f86862..e842f293c557914f82610d91afe59f1272d41028 100644 --- a/servefile.go +++ b/servefile.go @@ -16,6 +16,9 @@ const ( CacheExpireMax ) +// BUG/QUIRK: If a client requests 'foo%2Fbar' and 'foo/bar' exists, +// handleServeFile will serve foo/bar instead of passing the request +// upstream. func handleServeFile(documentRoot *string, cache CacheMode, notFoundHandler serviceHandleFunc) serviceHandleFunc { return func(w http.ResponseWriter, r *gitRequest) { file := filepath.Join(*documentRoot, r.relativeURIPath)