summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-01-17 23:07:14 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-01-17 23:07:14 +0000
commit58a2e0e2625d1fa21fe378f6ad3cad576af9e4d5 (patch)
tree759fe4ee1dc7242b8909eb43181801c3a66cf9d9 /networking
parent036dbaa082f1974246d1d7d21a8e163559642485 (diff)
downloadbusybox-w32-58a2e0e2625d1fa21fe378f6ad3cad576af9e4d5.tar.gz
busybox-w32-58a2e0e2625d1fa21fe378f6ad3cad576af9e4d5.tar.bz2
busybox-w32-58a2e0e2625d1fa21fe378f6ad3cad576af9e4d5.zip
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
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c
index c92771e18..3fd1df124 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -404,6 +404,9 @@ read_response:
404 server.host = target.host; 404 server.host = target.host;
405 server.port = target.port; 405 server.port = target.port;
406 } 406 }
407 bb_lookup_host(&s_in, server.host);
408 s_in.sin_port = server.port;
409 break;
407 } 410 }
408 } 411 }
409 } 412 }
@@ -834,7 +837,7 @@ progressmeter(int flag)
834 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 837 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
835 * SUCH DAMAGE. 838 * SUCH DAMAGE.
836 * 839 *
837 * $Id: wget.c,v 1.65 2004/01/17 05:03:31 bug1 Exp $ 840 * $Id: wget.c,v 1.66 2004/01/17 23:07:14 bug1 Exp $
838 */ 841 */
839 842
840 843