]> Sergey Matveev's repositories - public-inbox.git/commitdiff
git_http_backend: forward HTTP_GIT_PROTOCOL in request headers
authorEric Wong <e@80x24.org>
Wed, 8 Sep 2021 16:42:29 +0000 (14:42 -0200)
committerEric Wong <e@80x24.org>
Fri, 17 Sep 2021 21:50:47 +0000 (21:50 +0000)
It looks like git-http-backend(1) will support
HTTP_GIT_PROTOCOL, soon, and we won't have to add GIT_PROTOCOL
support to support newer versions of the git protocol, either.

Link: https://public-inbox.org/git/YTiXEEEs36NCEr9S@coredump.intra.peff.net/
lib/PublicInbox/GitHTTPBackend.pm

index c179ffef67ff377b079aeab75273dd4bc0cd1c27..b9a3e4f5b93eceb3372e0414df76ab8900e6ee7c 100644 (file)
@@ -98,6 +98,7 @@ sub serve_smart {
        foreach my $name (qw(QUERY_STRING
                                REMOTE_USER REMOTE_ADDR
                                HTTP_CONTENT_ENCODING
+                               HTTP_GIT_PROTOCOL
                                CONTENT_TYPE
                                SERVER_PROTOCOL
                                REQUEST_METHOD)) {