From 8e4f2ab1c775fba997eb8608ead4b5bef5dddf47 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 7 May 2018 21:16:48 +0200 Subject: [PATCH] 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. --- isso/views/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/views/comments.py b/isso/views/comments.py index b76be46..542c600 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -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.