mirror of https://github.com/ipxe/ipxe.git
[uri] Allow use of relative URIs when calling churi()
parent
7bc4093e1a
commit
349868b8fd
|
@ -36,6 +36,9 @@ struct uri *cwuri = NULL;
|
||||||
* @v uri New working URI, or NULL
|
* @v uri New working URI, or NULL
|
||||||
*/
|
*/
|
||||||
void churi ( struct uri *uri ) {
|
void churi ( struct uri *uri ) {
|
||||||
|
struct uri *new_uri;
|
||||||
|
|
||||||
|
new_uri = resolve_uri ( cwuri, uri );
|
||||||
uri_put ( cwuri );
|
uri_put ( cwuri );
|
||||||
cwuri = uri_get ( uri );
|
cwuri = new_uri;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue