relative http redirect from /get -> /stream

This commit is contained in:
Jack Robison 2019-04-10 10:27:17 -04:00
parent 3a53ef5690
commit 4d0e9e0428
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -473,7 +473,7 @@ class Daemon(metaclass=JSONRPCServerType):
name, claim_id = name_and_claim_id.split("/")
uri = f"lbry://{name}#{claim_id}"
stream = await self.jsonrpc_get(uri)
return web.HTTPFound(f"http://localhost:5279/stream/{stream.sd_hash}")
return web.HTTPFound(f"/stream/{stream.sd_hash}")
async def handle_stream_range_request(self, request: web.Request):
sd_hash = request.path.split("/stream/")[1]