Trim BaseURL

This commit is contained in:
Henrique Dias committed 2017-06-27 10:31:50 +01:00
1 parent 1d26b8e95e
commit 6bce6fb584
5 files changed
+22 -9

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ func serveListing(ctx *requestContext, w http.ResponseWriter, r *http.Request) (
var err error
// Loads the content of the directory
listing, err := getListing(ctx.User, ctx.Info.VirtualPath, ctx.FileManager.PrefixURL+r.URL.Path)
listing, err := getListing(ctx.User, ctx.Info.VirtualPath, ctx.FileManager.PrefixURL+ctx.FileManager.BaseURL+r.URL.Path)
if err != nil {
return errorToHTTP(err, true), err
}