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>tags/v1.20.1
|
|
||
136 |
|
136 |
|
137 |
|
137 |
|
138 |
|
138 |
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
142 |
|
142 |
|
143 |
|
143 |
|
144 |
|
144 |
|
|
|
||
160 |
|
160 |
|
161 |
|
161 |
|
162 |
|
162 |
|
163 |
|
|
|
|
163 |
|
|
164 |
|
164 |
|
165 |
|
165 |
|
166 |
|
166 |
|
167 |
|
167 |
|
168 |
|
168 |
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
169 |
|
203 |
|
170 |
|
204 |
|
171 |
|
|
|
172 |
|
|
|
|
205 |
|
|
|
206 |
|
|
|
207 |
|
|
173 |
|
208 |
|
174 |
|
209 |
|
175 |
|
210 |
|