summaryrefslogtreecommitdiffstats
path: root/src/net/udp
diff options
context:
space:
mode:
authorMichael Brown2016-01-09 14:23:13 +0100
committerMichael Brown2016-01-09 14:30:42 +0100
commita8bef53908db7682aff6957c88fa267c4476dbb1 (patch)
treecb79d4bb405e5de6d145b695c34150bbbc4ea70f /src/net/udp
parent[image] Provide image_set_uri() to modify an image's URI (diff)
downloadipxe-a8bef53908db7682aff6957c88fa267c4476dbb1.tar.gz
ipxe-a8bef53908db7682aff6957c88fa267c4476dbb1.tar.xz
ipxe-a8bef53908db7682aff6957c88fa267c4476dbb1.zip
[downloader] Update image URI in response to a redirection
Update the image's recorded URI when a download redirection occurs. This ensures that URIs relative to a redirected download are resolved correctly. In particular, this allows for the use of relative URIs in scripts that are themselves downloaded via a redirection, such as the HTTP 301 redirection used to fix up URIs pointing to directories but omitting the trailing slash (e.g. "http://boot.ipxe.org/demo", which will be redirected to "http://boot.ipxe.org/demo/"). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/udp')
0 files changed, 0 insertions, 0 deletions