forked from MarseyWorld/MarseyWorld
make sure useless "/" is always removed for better repost checking
parent
5e6ebb3599
commit
db7501629c
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue