Commit e9977133 by jsurloppe Committed by Tom Christie

urljoin with leading slash remove part of path (#4332)

parent 5b071ab3
......@@ -206,6 +206,9 @@ class SchemaGenerator(object):
else:
encoding = None
if self.url and path.startswith('/'):
path = path[1:]
return coreapi.Link(
url=urlparse.urljoin(self.url, path),
action=method.lower(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment