mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-26 19:29:04 +00:00
[uri] Allow use of relative URIs when calling churi()
This commit is contained in:
parent
7bc4093e1a
commit
349868b8fd
@ -36,6 +36,9 @@ struct uri *cwuri = NULL;
|
||||
* @v uri New working URI, or NULL
|
||||
*/
|
||||
void churi ( struct uri *uri ) {
|
||||
struct uri *new_uri;
|
||||
|
||||
new_uri = resolve_uri ( cwuri, uri );
|
||||
uri_put ( cwuri );
|
||||
cwuri = uri_get ( uri );
|
||||
cwuri = new_uri;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user