Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match ns prefix by longest match, not first match
Previously, when two namespaces like /chtc and /chtc/PUBLIC existed in the cache, the matchPrefix function wound up matching whichever happened to be read first. Now it matches against the longest prefix, so a request for path /chtc/PUBLIC/foo/bar will always match /chtc/PUBLIC. Closes issue PelicanPlatform#140
- Loading branch information