Commit 90ea97f7 authored by Ilkka Ollakka's avatar Ilkka Ollakka

httplive: support absolute URI-locations for key-retrieval

parent e1208737
......@@ -775,6 +775,12 @@ static int parse_Key(stream_t *s, hls_stream_t *hls, char *p_read)
if (end != NULL)
*end = 0;
}
/* For absolute URI, just duplicate it
* don't limit to HTTP, maybe some sanity checking
* should be done more in here? */
if( strstr( uri , "://" ) )
hls->psz_current_key_path = strdup( uri );
else
hls->psz_current_key_path = relative_URI(hls->url, uri);
free(value);
......
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