diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c index 807a0c3e..a365b2a4 100644 --- a/src/net/tcp/http.c +++ b/src/net/tcp/http.c @@ -452,11 +452,12 @@ static void http_step ( struct process *process ) { /* Send GET request */ if ( ( rc = xfer_printf ( &http->socket, - "GET %s HTTP/1.0\r\n" + "GET %s%s HTTP/1.0\r\n" "User-Agent: gPXE/" VERSION "\r\n" "%s%s%s" "Host: %s\r\n" "\r\n", + http->uri->path ? "" : "/", request, ( user ? "Authorization: Basic " : "" ),