http: tell server that the client understands v1
authorBrandon Williams <bmwill@google.com>
Mon, 16 Oct 2017 17:55:29 +0000 (10:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Oct 2017 01:51:29 +0000 (10:51 +0900)
commit19113a26b667527dc983920bf526b5c938d475bb
tree1fa6c25904dce5ba4200ccb73e8a7105318bee6c
parent0c2f0d27038f2aa98082d8af35c53b2ec7e9ad92
http: tell server that the client understands v1

Tell a server that protocol v1 can be used by sending the http header
'Git-Protocol' with 'version=1' indicating this.

Also teach the apache http server to pass through the 'Git-Protocol'
header as an environment variable 'GIT_PROTOCOL'.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
http.c
t/lib-httpd/apache.conf
t/t5700-protocol-v1.sh