Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Aaron Fischer | bd0555069e |
|
@ -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…
Reference in New Issue