aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 09:14:02 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 09:14:02 +0000
commit3c99a599155b970a81de26ffcea6f16940324e62 (patch)
tree03e48132d6b3d9543d7de0622743090deda0f04f /networking/wget.c
parentd8760a705c66fc8eb8f918d1bd320d04146d134c (diff)
downloadbusybox-w32-3c99a599155b970a81de26ffcea6f16940324e62.tar.gz
busybox-w32-3c99a599155b970a81de26ffcea6f16940324e62.tar.bz2
busybox-w32-3c99a599155b970a81de26ffcea6f16940324e62.zip
remove obsolete FEATURE_WGET_IP6_LITERAL
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/networking/wget.c b/networking/wget.c
index cc768db8b..056d2c7fc 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -260,14 +260,6 @@ int wget_main(int argc, char **argv)
260 * Send HTTP request. 260 * Send HTTP request.
261 */ 261 */
262 if (use_proxy) { 262 if (use_proxy) {
263// const char *format = "GET %stp://%s:%d/%s HTTP/1.1\r\n";
264//#if ENABLE_FEATURE_WGET_IP6_LITERAL
265// if (strchr(target.host, ':'))
266// format = "GET %stp://[%s]:%d/%s HTTP/1.1\r\n";
267//#endif
268// fprintf(sfp, format,
269// target.is_ftp ? "f" : "ht", target.host,
270// ntohs(target.port), target.path);
271 fprintf(sfp, "GET %stp://%s/%s HTTP/1.1\r\n", 263 fprintf(sfp, "GET %stp://%s/%s HTTP/1.1\r\n",
272 target.is_ftp ? "f" : "ht", target.host, 264 target.is_ftp ? "f" : "ht", target.host,
273 target.path); 265 target.path);
@@ -566,28 +558,6 @@ static void parse_url(char *src_url, struct host_info *h)
566 } 558 }
567 559
568 sp = h->host; 560 sp = h->host;
569
570//host2sockaddr does this itself
571//#if ENABLE_FEATURE_WGET_IP6_LITERAL
572// if (sp[0] == '[') {
573// char *ep;
574//
575// ep = sp + 1;
576// while (*ep == ':' || isxdigit(*ep))
577// ep++;
578// if (*ep == ']') {
579// h->host++;
580// *ep = '\0';
581// sp = ep + 1;
582// }
583// }
584//#endif
585//
586// p = strchr(sp, ':');
587// if (p != NULL) {
588// *p = '\0';
589// h->port = htons(xatou16(p + 1));
590// }
591} 561}
592 562
593 563