summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaesbaert <haesbaert@openbsd.org>2012-08-18 06:46:46 +0000
committerhaesbaert <haesbaert@openbsd.org>2012-08-18 06:46:46 +0000
commit2a06ffdbd138792d541f3edd274efaee1c5d6e02 (patch)
treebec4b706f422cd78b261daf7897413b1c89bf57f
parentRemove unused field 'next' from struct timeout. There's only one (diff)
downloadwireguard-openbsd-2a06ffdbd138792d541f3edd274efaee1c5d6e02.tar.xz
wireguard-openbsd-2a06ffdbd138792d541f3edd274efaee1c5d6e02.zip
Fix http resume without out auth, which I broke on the last commit,
spotted by bluhm. ok bluhm.
-rw-r--r--usr.bin/ftp/fetch.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 81cf02f8d76..1596446333e 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.106 2012/08/14 20:47:08 haesbaert Exp $ */
+/* $OpenBSD: fetch.c,v 1.107 2012/08/18 06:46:46 haesbaert Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@ -672,8 +672,11 @@ again:
auth = NULL;
} else
#endif /* SMALL */
- ftp_printf(fin, ssl, "GET /%s %s\r\nHost: ", epath,
- "HTTP/1.0");
+ ftp_printf(fin, ssl, "GET /%s %s\r\nHost: ", epath,
+#ifndef SMALL
+ restart_point ? "HTTP/1.1\r\nConnection: close" :
+#endif /* !SMALL */
+ "HTTP/1.0");
if (strchr(host, ':')) {
/*
* strip off scoped address portion, since it's