diff options
-rw-r--r-- | loader/ftp.c | 2 |
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: |