summaryrefslogtreecommitdiff
path: root/Documentation/technical/protocol-v2.txt
diff options
context:
space:
mode:
authorJosh Steadmon <steadmon@google.com>2018-06-22 19:01:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-22 20:03:42 (GMT)
commitbb4d000e87a1649573aba210908847c8782b09d4 (patch)
treecde94600ebc77adbda9477013b9f8da80ef3548e /Documentation/technical/protocol-v2.txt
parenta4d78ce26bf4816d868be21c7355d0e0940460a7 (diff)
downloadgit-bb4d000e87a1649573aba210908847c8782b09d4.zip
git-bb4d000e87a1649573aba210908847c8782b09d4.tar.gz
git-bb4d000e87a1649573aba210908847c8782b09d4.tar.bz2
protocol-v2 doc: put HTTP headers after request
HTTP servers return 400 if you send headers before the GET request. Signed-off-by: Josh Steadmon <steadmon@google.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/protocol-v2.txt')
-rw-r--r--Documentation/technical/protocol-v2.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/technical/protocol-v2.txt b/Documentation/technical/protocol-v2.txt
index 136179d..11c0efb 100644
--- a/Documentation/technical/protocol-v2.txt
+++ b/Documentation/technical/protocol-v2.txt
@@ -64,9 +64,8 @@ When using the http:// or https:// transport a client makes a "smart"
info/refs request as described in `http-protocol.txt` and requests that
v2 be used by supplying "version=2" in the `Git-Protocol` header.
- C: Git-Protocol: version=2
- C:
C: GET $GIT_URL/info/refs?service=git-upload-pack HTTP/1.0
+ C: Git-Protocol: version=2
A v2 server would reply: