Compare commits

...

1 Commits

Author SHA1 Message Date
  Aaron Fischer bd0555069e Strip path from root 1 week ago
1 changed files with 3 additions and 1 deletions
Split View
  1. +3
    -1
      serve_https.go

+ 3
- 1
serve_https.go View File

@ -80,7 +80,9 @@ func serveHTTPS(w http.ResponseWriter, r *http.Request) (int, int64, string) {
root += "/"
}
requestSplit := strings.Split(r.URL.Path, "/")
// We remove the the path (specified in the config file) from the actual URL, so
// it will not prefixed two times to the root.
requestSplit := strings.Split(r.URL.Path[len(serve.Path)-1:], "/")
if !serve.SymLinks {
for i := 1; i < len(requestSplit); i++ {


Loading…
Cancel
Save