Last batch of optimizations
This commit is contained in:
@@ -25,7 +25,7 @@ func Router(mux *http.ServeMux, c config.ConfigInterface, t *torrent.TorrentMana
|
||||
if countNonEmptySegments(strings.Split(requestPath, "/")) > 3 {
|
||||
universal.HandleGetRequest(w, r, t, c, cache)
|
||||
} else {
|
||||
zurghttp.HandleDirectoryListing(w, r, t, c)
|
||||
zurghttp.HandleDirectoryListing(w, r, t)
|
||||
}
|
||||
|
||||
case http.MethodHead:
|
||||
@@ -40,7 +40,7 @@ func Router(mux *http.ServeMux, c config.ConfigInterface, t *torrent.TorrentMana
|
||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
switch r.Method {
|
||||
case "PROPFIND":
|
||||
dav.HandlePropfindRequest(w, r, t, c)
|
||||
dav.HandlePropfindRequest(w, r, t)
|
||||
|
||||
case http.MethodGet:
|
||||
universal.HandleGetRequest(w, r, t, c, cache)
|
||||
|
||||
Reference in New Issue
Block a user