Compare commits

...

1 Commits

Author SHA1 Message Date
Aaron Fischer bd0555069e Strip path from root 4 months ago
  1. 4
      serve_https.go

4
serve_https.go

@ -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