Trim BaseURL

Former-commit-id: 10a2dcf7a277693d7f23419dde16715b8b3ab67d [formerly c0645b792ed36d75b76442016596d3086d23236a] [formerly a605776b898544c9034b05b240249afc515d8c91 [formerly 6bce6fb5849b4b7f1816d8e83a80dbc575aa420c]]
Former-commit-id: deb481fbc32d90688fa9399f1f63f002d1008087 [formerly f7f130563c33d12ef0ff416a572d97f1b70101fb]
Former-commit-id: f51b7316471d625380cd711d1c783ca9478a77dd
This commit is contained in:
Henrique Dias
2017-06-27 10:31:50 +01:00
parent f2b492e0ce
commit f0be416253
5 changed files with 22 additions and 9 deletions

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
}