summaryrefslogtreecommitdiffstats
path: root/loader/ftp.c
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-06-28 20:37:49 +0000
committerErik Troan <ewt@redhat.com>2001-06-28 20:37:49 +0000
commit3d301bee754d50d2abc32ba13c406d9e4cadc15c (patch)
treec2e52aeb20e9b0645f6ea598277ba3fe84935532 /loader/ftp.c
parenta8a977a3bc27032a6592da064062c0a95a06163d (diff)
downloadanaconda-3d301bee754d50d2abc32ba13c406d9e4cadc15c.tar.gz
anaconda-3d301bee754d50d2abc32ba13c406d9e4cadc15c.tar.xz
anaconda-3d301bee754d50d2abc32ba13c406d9e4cadc15c.zip
use http 1.1, it makes IIS happier
Diffstat (limited to 'loader/ftp.c')
-rw-r--r--loader/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/ftp.c b/loader/ftp.c
index 6f1bd8131..92bad61e6 100644
--- a/loader/ftp.c
+++ b/loader/ftp.c
@@ -442,7 +442,7 @@ int httpGetFileDesc(char * hostname, int port, char * remotename) {
}
buf = alloca(strlen(remotename) + 20);
- sprintf(buf, "GET %s \"HTTP/1.0\"\r\n\r\n", remotename);
+ sprintf(buf, "GET %s HTTP/1.1\t\nHost: %s\r\n\r\n", remotename, hostname);
write(sock, buf, strlen(buf));
/* This is fun; read the response a character at a time until we: