From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14030 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Assaf Gordon Newsgroups: gmane.linux.lib.musl.general Subject: Re: Supporting git access via smart HTTPS protocol for musl-libc Date: Tue, 26 Mar 2019 16:32:32 -0600 Message-ID: References: <20190326025937.GW23599@brightrain.aerifal.cx> <20190326100245.GA1900@localhost> <20190326150430.GY23599@brightrain.aerifal.cx> <20190326150901.GA2267@homura.localdomain> <20190326151344.GB23599@brightrain.aerifal.cx> <20190326154304.GB2267@homura.localdomain> <20190326154700.GC23599@brightrain.aerifal.cx> <20190326155743.GC2267@homura.localdomain> <20190326175700.GD23599@brightrain.aerifal.cx> <20190326220225.GE23599@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="209588"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-14046-gllmg-musl=m.gmane.org@lists.openwall.com Tue Mar 26 23:33:52 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1h8udi-000sJj-RF for gllmg-musl@m.gmane.org; Tue, 26 Mar 2019 23:33:50 +0100 Original-Received: (qmail 31891 invoked by uid 550); 26 Mar 2019 22:32:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 31835 invoked from network); 26 Mar 2019 22:32:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=SAdAsZLasENOndaY2PSw6qYVz6xixfjgDEiWWLFLXo8=; b=juMSttdyUVqxt+S1DBH9cgnavmg1gR3ML5s8WHEfuKiGZL8cpnUlVowMmxiOsPBcQm H2N2h54/q/rR3aS6g4xzkoxfZY+Z1veujBm8jCnBgsSMO4L48mGrY3cc1Dk2eX1907UY JaXXrV55NvON+34ywzkS/hC63N/jphtLEqD5lmwrrEIV9hruxBy9zg3CMnu6jORZyp7b VNp4azupib7ibs4rPqc9PigzH9nq/DbSo+nili/q2Txw0d4H1FZQpMvKontjYn+z9/Cz xXTOTi908Dh+M1ecumuXG/+gTgGJRd+OaiJylEEVAC2J/319WaytqrBDm5oWD1KTzq/Y qRvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=SAdAsZLasENOndaY2PSw6qYVz6xixfjgDEiWWLFLXo8=; b=FURCQ8oIyUmQ2RQ+CZRUiH2/YEjBCl+hH9bUmo72x7+WVEtz5vvLxvNrCkmKPjBmHo 94cRn4ufnlG/sxCU+L+7gwUeDDYVBoe/My8ccaXQFxaC3KXAMzG13q8DFxunqFxvyJXt F5+LVAqP8lD7lF8NWR3FGkw/ZSfPDjdhAS2akAGwISqlVjLqw6Xet2t11Ezs/uPm2ff2 ekXKObwxs4UFkiPiUlzukLbMsZrsbrQLL6Dxvzapwh/0AzQvJQepkvpaStG8Ho2aseD/ vqLBG+VIEZKswt2uiSj6SDgq0Fh8rdA2U9cABGzU/rTPqozFJOY1clkS41LoQYKx3ZNK 3eWA== X-Gm-Message-State: APjAAAUw8+eBaw/4TNEcI2mLCvaPlZNmelekaDBfFWzPLSQKH7pza8hB yMJy1jiQfYUNBYWVtwhSDevix1dmhWdZzY6/fzQFR0LP X-Google-Smtp-Source: APXvYqwv6WhvFb/g8X1HPqDNadZll1eUsYKDUDdPqMccMpukspBtc5CBN/FesrJe4KmEb8c4lHxkNMlNJVS3bBd/oBE= X-Received: by 2002:ac2:43ba:: with SMTP id t26mr1024275lfl.10.1553639564911; Tue, 26 Mar 2019 15:32:44 -0700 (PDT) In-Reply-To: <20190326220225.GE23599@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:14030 Archived-At: > > Thanks for the info. I've been playing with it, but haven't been able > to get it to work yet. I suspect thttpd is doing something broken with > the POST request since the git clone breaks during that. Going to look > at it in more detail later. The same happened to me with busybox, and was solved by forcing: export HTTP_CONTENT_ENCODING=gzip Seems to me (from a cursory look) that "git clone" client always sends gzipped (inflate) data, but either doesn't set the HTTP encoding header, or the header gets lost somehow. The git-http-backend uses that header to decide whether to deflate the stream or not ( https://github.com/git/git/blob/master/http-backend.c#L460 ). That's the first thing I'd try if the GET request worked but the following "POST git-update-pack" does not. regards, - assaf