remove stupid 1000 limit
This commit is contained in:
@@ -19,11 +19,12 @@ func HandleGetRequest(w http.ResponseWriter, r *http.Request, t *torrent.Torrent
|
||||
requestPath := path.Clean(r.URL.Path)
|
||||
|
||||
segments := strings.Split(requestPath, "/")
|
||||
fmt.Println(segments, len(segments))
|
||||
// If there are less than 3 segments, return an error or adjust as needed
|
||||
if len(segments) < 3 {
|
||||
log.Println("Invalid url", requestPath)
|
||||
if len(segments) < 4 {
|
||||
// log.Println("Invalid url", requestPath)
|
||||
// http.Error(w, "Cannot find file", http.StatusNotFound)
|
||||
handleSingleTorrent(requestPath, w, r, t)
|
||||
HandlePropfindRequest(w, r, t, c)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user