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

pull/199/head
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
new_url = ParseResult(scheme="https",
netloc=parsed_url.netloc,
path=parsed_url.path,
path=parsed_url.path.rstrip('/'),
params=parsed_url.params,
query=urlencode(filtered, doseq=True),
fragment=parsed_url.fragment)