make sure useless "/" is always removed for better repost checking

master
Aevann 2023-09-14 03:34:13 +03:00
parent 5e6ebb3599
commit db7501629c
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ def normalize_url(url):
filtered['context'] = 8 filtered['context'] = 8
new_url = ParseResult(scheme="https", new_url = ParseResult(scheme="https",
netloc=parsed_url.netloc, netloc=parsed_url.netloc,
path=parsed_url.path, path=parsed_url.path.rstrip('/'),
params=parsed_url.params, params=parsed_url.params,
query=urlencode(filtered, doseq=True), query=urlencode(filtered, doseq=True),
fragment=parsed_url.fragment) fragment=parsed_url.fragment)