Patch from Leif Lindholm (slightly modified by me), to fix http
redirection. Example of incorrect behaviour was the following url, busybox wget didnt get redirected to the busybox url as it should. http://freshmeat.net/redir/busybox/953/url_homepage/www.busybox.net
This commit is contained in:
parent
036dbaa082
commit
58a2e0e262
1 changed files with 4 additions and 1 deletions
|
@ -404,6 +404,9 @@ read_response:
|
|||
server.host = target.host;
|
||||
server.port = target.port;
|
||||
}
|
||||
bb_lookup_host(&s_in, server.host);
|
||||
s_in.sin_port = server.port;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -834,7 +837,7 @@ progressmeter(int flag)
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: wget.c,v 1.65 2004/01/17 05:03:31 bug1 Exp $
|
||||
* $Id: wget.c,v 1.66 2004/01/17 23:07:14 bug1 Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue