git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Document the HTTP transport protocols

From
Duy Nguyen <pclouds@gmail.com>
Date
Aug 22, 2013, 11:27 UTC
Message-ID
<CACsJy8A4c3gFeX+q4hPjki8+mLjv_xo4tNbhyyCcmaUX7tYFLA@mail.gmail.com>
In-Reply-To
<20130821220021.GA32130@sigill.intra.peff.net>
On Thu, Aug 22, 2013 at 5:00 AM, Jeff King <peff@peff.net> wrote:
Show 12 quoted lines
> On Wed, Aug 21, 2013 at 08:45:13PM +0700, Nguyen Thai Ngoc Duy wrote:
>
>>  On the topic, C Git's (maybe) violations on this spec are:
>>
>>   - The client does not strip trailing slashes from $GIT_URL before
>>     sending to the server, as described in section "URL Format".
>
> Yeah. We get the basic gist right by not adding an extra "/" if there is
> already a trailing slash (so you do not have http://host/path//info/refs").
> But we do not go out of our way to remove multiple slashes that the user
> hands out (either at the end or in the middle of the URL). I doubt that
> it matters in practice.

It may make writing rewrite/matching patterns in http server a tiny bit harder, but should not be a big deal. I agree with Junio this could be something a new contributor can work on to get familiar with (scary, imo) transport/connect code.

I agree with the rest of your comments that those "violations" do not matter much (when I raised them I did not mean "fix Git", just checking if I missed anything) and the document is ok as-is.

-- 
Duy
Previous: Jeff King
Message 4 of 4 in “Document the HTTP transport protocols”
  1. Document the HTTP transport protocolsNguyễn Thái Ngọc Duy, Aug 21, 2013
  2. Junio C HamanoAug 21, 2013
  3. Jeff KingAug 21, 2013
  4. Duy NguyenAug 22, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.