Merge pull request #438 from vincentbernat/fix/rss-relative

feed: remove trailing / from base URL
This commit is contained in:
Benoît Latinier 2018-07-31 08:59:22 +02:00 committed by GitHub
commit c9230d5a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -959,7 +959,7 @@ class API(object):
except ValueError:
return BadRequest("limit should be integer")
comments = self.comments.fetch(**args)
base = conf.get('base')
base = conf.get('base').rstrip('/')
hostname = urlparse(base).netloc
# Let's build an Atom feed.