added / to ipfs hash path

This commit is contained in:
Alex Kelly 2020-01-05 22:02:37 -05:00
parent c1f5070de5
commit 58b70533a8

View file

@ -60,7 +60,7 @@ def redirectDomain(domain, action=None):
body = json.loads(dnslookup.content) body = json.loads(dnslookup.content)
print(body) print(body)
response.status = 302 response.status = 302
if not body['ipfs']['html'].startswith('ip'): if not body['ipfs']['html'].startswith('/ip'):
ipfshash = "ipfs/" + body['ipfs']['html'] ipfshash = "ipfs/" + body['ipfs']['html']
else: else:
ipfshash = body['ipfs']['html'] ipfshash = body['ipfs']['html']