diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-01-31 08:08:57 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-01-31 08:08:57 +0000 |
commit | 24cb17f9be9d44358965e8723aac1ec7e1b122d2 (patch) | |
tree | 5ec458091c9a8900451a2653ca002483fcc33933 /networking | |
parent | 35db2281b79fac3bbc96199fc1cf7df8e83d4454 (diff) |
Fix http proxy use, bytes were swapped
Diffstat (limited to 'networking')
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c index 59f78ac3b..313e2e6ff 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -320,7 +320,7 @@ int wget_main(int argc, char **argv) #endif fprintf(sfp, format, target.is_ftp ? "f" : "ht", target.host, - target.port, target.path); + ntohs(target.port), target.path); } else { fprintf(sfp, "GET /%s HTTP/1.1\r\n", target.path); } @@ -837,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.67 2004/01/26 07:17:30 andersen Exp $ + * $Id: wget.c,v 1.68 2004/01/31 08:08:57 bug1 Exp $ */ |