From: Junio C Hamano Date: Sun, 04 Jun 2006 06:27:32 GMT Subject: Re: git daemon directory munging? Message-ID: <7vverhcu5n.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > diff --git a/connect.c b/connect.c > index 54f7bf7..36c5d04 100644 > --- a/connect.c > +++ b/connect.c > @@ -374,7 +374,7 @@ static int git_tcp_connect(int fd[2], co > > fd[0] = sockfd; > fd[1] = sockfd; > - packet_write(sockfd, "%s %s\n", prog, path); > + packet_write(sockfd, "%s %s%c%s%c%s\n", prog, path, 0, host, 0, port); > return 0; > } Adding host like HTTP does with Host: header makes sense but I think the accept side can usually tell what the port it accepted the connection to is.