summaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-22 09:14:02 +0000
committerDenis Vlasenko2007-01-22 09:14:02 +0000
commit3c99a599155b970a81de26ffcea6f16940324e62 (patch)
tree03e48132d6b3d9543d7de0622743090deda0f04f /networking/wget.c
parentd8760a705c66fc8eb8f918d1bd320d04146d134c (diff)
downloadbusybox-3c99a599155b970a81de26ffcea6f16940324e62.zip
busybox-3c99a599155b970a81de26ffcea6f16940324e62.tar.gz
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 cc768db..056d2c7 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -260,14 +260,6 @@ int wget_main(int argc, char **argv)
* Send HTTP request.
*/
if (use_proxy) {
-// const char *format = "GET %stp://%s:%d/%s HTTP/1.1\r\n";
-//#if ENABLE_FEATURE_WGET_IP6_LITERAL
-// if (strchr(target.host, ':'))
-// format = "GET %stp://[%s]:%d/%s HTTP/1.1\r\n";
-//#endif
-// fprintf(sfp, format,
-// target.is_ftp ? "f" : "ht", target.host,
-// ntohs(target.port), target.path);
fprintf(sfp, "GET %stp://%s/%s HTTP/1.1\r\n",
target.is_ftp ? "f" : "ht", target.host,
target.path);
@@ -566,28 +558,6 @@ static void parse_url(char *src_url, struct host_info *h)
}
sp = h->host;
-
-//host2sockaddr does this itself
-//#if ENABLE_FEATURE_WGET_IP6_LITERAL
-// if (sp[0] == '[') {
-// char *ep;
-//
-// ep = sp + 1;
-// while (*ep == ':' || isxdigit(*ep))
-// ep++;
-// if (*ep == ']') {
-// h->host++;
-// *ep = '\0';
-// sp = ep + 1;
-// }
-// }
-//#endif
-//
-// p = strchr(sp, ':');
-// if (p != NULL) {
-// *p = '\0';
-// h->port = htons(xatou16(p + 1));
-// }
}