diff options
author | 2005-08-05 21:01:53 +0000 | |
---|---|---|
committer | 2005-08-05 21:01:53 +0000 | |
commit | 4c6a1234b8c69a930d5d07b848d107ca06a2f743 (patch) | |
tree | 14bc6aa04d16307b0096605ef5a863563d3522a5 | |
parent | correct io base/limit registers handling. from mycroft. only affects (diff) | |
download | wireguard-openbsd-4c6a1234b8c69a930d5d07b848d107ca06a2f743.tar.xz wireguard-openbsd-4c6a1234b8c69a930d5d07b848d107ca06a2f743.zip |
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@.
-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"); } |