|  | @@ -662,13 +662,17 @@ static void http_step ( struct http_request *http ) {
 | 
		
	
		
			
			| 662 | 662 |  	if ( ( rc = xfer_printf ( &http->socket,
 | 
		
	
		
			
			| 663 | 663 |  				  "%s %s%s HTTP/1.1\r\n"
 | 
		
	
		
			
			| 664 | 664 |  				  "User-Agent: iPXE/" VERSION "\r\n"
 | 
		
	
		
			
			| 665 |  | -				  "Host: %s\r\n"
 | 
		
	
		
			
			|  | 665 | +				  "Host: %s%s%s\r\n"
 | 
		
	
		
			
			| 666 | 666 |  				  "%s%s%s%s%s%s%s"
 | 
		
	
		
			
			| 667 | 667 |  				  "\r\n",
 | 
		
	
		
			
			| 668 | 668 |  				  ( ( http->flags & HTTP_HEAD_ONLY ) ?
 | 
		
	
		
			
			| 669 | 669 |  				    "HEAD" : "GET" ),
 | 
		
	
		
			
			| 670 | 670 |  				  ( http->uri->path ? "" : "/" ),
 | 
		
	
		
			
			| 671 | 671 |  				  request, host,
 | 
		
	
		
			
			|  | 672 | +				  ( http->uri->port ?
 | 
		
	
		
			
			|  | 673 | +				    ":" : "" ),
 | 
		
	
		
			
			|  | 674 | +				  ( http->uri->port ?
 | 
		
	
		
			
			|  | 675 | +				    http->uri->port : "" ),
 | 
		
	
		
			
			| 672 | 676 |  				  ( ( http->flags & HTTP_KEEPALIVE ) ?
 | 
		
	
		
			
			| 673 | 677 |  				    "Connection: Keep-Alive\r\n" : "" ),
 | 
		
	
		
			
			| 674 | 678 |  				  ( partial ? "Range: bytes=" : "" ),
 |