diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2005-08-05 21:01:54 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2005-08-05 21:01:54 +0000 |
commit | 26a77baa60322ab9132ee64e6f90be6cf558d38d (patch) | |
tree | 910f393199052741c7c68f099e7b81ccdcc582af /usr.bin/ftp/fetch.c | |
parent | a0742ff39fe05e0f8194c9ddb7f7d61de1ee655a (diff) |
when i did the cleanup and switched to http 1.1, i forgot to add chunked
support. while it's being tested switch to 1.0. noticed and tested by nick@.
Diffstat (limited to 'usr.bin/ftp/fetch.c')
-rw-r--r-- | usr.bin/ftp/fetch.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index c9e1e16e23d..92780f6f34e 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.55 2005/07/18 02:55:59 fgsch Exp $ */ +/* $OpenBSD: fetch.c,v 1.56 2005/08/05 21:01:53 fgsch Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -38,7 +38,7 @@ */ #if !defined(lint) && !defined(SMALL) -static char rcsid[] = "$OpenBSD: fetch.c,v 1.55 2005/07/18 02:55:59 fgsch Exp $"; +static char rcsid[] = "$OpenBSD: fetch.c,v 1.56 2005/08/05 21:01:53 fgsch Exp $"; #endif /* not lint and not SMALL */ /* @@ -349,7 +349,7 @@ again: fprintf(fin, "GET %s HTTP/1.0\r\n%s\r\n\r\n", path, HTTP_USER_AGENT); } else { - fprintf(fin, "GET /%s HTTP/1.1\r\nHost: ", path); + fprintf(fin, "GET /%s HTTP/1.0\r\nHost: ", path); if (strchr(host, ':')) { char *h, *p; @@ -374,8 +374,7 @@ again: */ if (port && strcmp(port, "80") != 0) fprintf(fin, ":%s", port); - fprintf(fin, "\r\nConnection: close\r\n%s\r\n\r\n", - HTTP_USER_AGENT); + fprintf(fin, "\r\n%s\r\n\r\n", HTTP_USER_AGENT); if (verbose) fprintf(ttyout, "\n"); } |