Subject: Re: bin/15415: ftp(1) would fail to fetch using HTTP.
To: None <taca@sky.yamashina.kyoto.jp>
From: None <cgd@broadcom.com>
List: netbsd-bugs
Date: 01/29/2002 09:06:53
At Tue, 29 Jan 2002 16:35:34 +0000 (UTC), "Takahiro Kambe" wrote:
> -				fprintf(fin, "Host: [%s]:%d\r\n", h, portnum);
> +				fprintf(fin, "Host: [%s]", h);
>  				free(h);
>  			} else
> -				fprintf(fin, "Host: %s:%d\r\n", host, portnum);
> +				fprintf(fin, "Host: %s", host);
> +			if (portnum != HTTP_PORT) {
> +				fprintf(fin, "%d", portnum);
> +			}
> +			fputs("\r\n", fin);

you're missing the ':', it seems...