Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Drop extra slashes Handle the request unchanged if the target seems canonical, otherwise: * Turns repeated slashes into a single one * Drop the last slash * Redirect to the resulting target Note: Dream.split_targer bugged? When passed a string beginning with exactly two slashes, split_target drops everything before the first slash. See: aantron/dream#248 As a work around, three slashes are preprended to all targets * Formatting --------- Co-authored-by: Cuihtlauac ALVARADO <[email protected]>
- Loading branch information