strip the ending slash for static_url_path

This commit is contained in:
frostming 2019-12-26 09:33:42 +08:00 committed by David Lord
parent 3cafd1f82e
commit c4de6a0bfc
3 changed files with 14 additions and 1 deletions

View file

@ -1013,7 +1013,7 @@ class _PackageBoundObject(object):
return self._static_url_path
if self.static_folder is not None:
basename = os.path.basename(self.static_folder)
basename = os.path.basename(self.static_folder.rstrip("/"))
return ("/" + basename).rstrip("/")
@static_url_path.setter