From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14032 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Supporting git access via smart HTTPS protocol for musl-libc Date: Tue, 26 Mar 2019 20:15:42 -0400 Message-ID: <20190327001542.GG23599@brightrain.aerifal.cx> References: <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> <20190326235835.GF23599@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98262"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-14048-gllmg-musl=m.gmane.org@lists.openwall.com Wed Mar 27 01:15:58 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 1h8wEX-000PRq-S4 for gllmg-musl@m.gmane.org; Wed, 27 Mar 2019 01:15:57 +0100 Original-Received: (qmail 9682 invoked by uid 550); 27 Mar 2019 00:15:55 -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 9661 invoked from network); 27 Mar 2019 00:15:55 -0000 Content-Disposition: inline In-Reply-To: <20190326235835.GF23599@brightrain.aerifal.cx> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14032 Archived-At: On Tue, Mar 26, 2019 at 07:58:35PM -0400, Rich Felker wrote: > On Tue, Mar 26, 2019 at 04:32:32PM -0600, Assaf Gordon wrote: > > > > > > 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. > > Amazingly, this works, but only if I do it only for > REQUEST_METHOD=POST. Otherwise it breaks the GET request and it never > makes it to the POST. *sigh* There's got to be some better way to fix > this. Anyway, for now this is vaguely working, but it's a hack and it's experimental and might break. Users interested in testing can clone: https://git.musl-libc.org/git/musl It might go up and down while I'm hacking on getting it right, but I intend for the URL to be permanent in the long term. Rich