feed: remove trailing / from base URL

This way, one can use "/" as base URL. This is only valid if we are
sure that URI should always have a leading "/". Is that the case?

Fix #437.
pull/438/head
Vincent Bernat 6 years ago
parent 97721c7eef
commit 8e4f2ab1c7

@ -887,7 +887,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.

Loading…
Cancel
Save