From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14031 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 19:58:35 -0400 Message-ID: <20190326235835.GF23599@brightrain.aerifal.cx> References: <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=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27805"; 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-14047-gllmg-musl=m.gmane.org@lists.openwall.com Wed Mar 27 00:58:51 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 1h8vxy-000764-Mm for gllmg-musl@m.gmane.org; Wed, 27 Mar 2019 00:58:50 +0100 Original-Received: (qmail 25921 invoked by uid 550); 26 Mar 2019 23:58:48 -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 25901 invoked from network); 26 Mar 2019 23:58:47 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14031 Archived-At: 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. Rich