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>
Josh Steadmon committed
Jun 22, 2018 at 12:01 UTC
bb4d000e87a1649573aba210908847c8782b09d4
1 file changed
+1
-2
Documentation/technical/protocol-v2.txt
+1
-2
@@ -64,9 +64,8 @@ When using the http:// or https:// transport a client makes a "smart"
64
info/refs request as described in `http-protocol.txt` and requests that
65
v2 be used by supplying "version=2" in the `Git-Protocol` header.
66
67
- C: Git-Protocol: version=2
68
- C:
67
C: GET $GIT_URL/info/refs?service=git-upload-pack HTTP/1.0
68
+ C: Git-Protocol: version=2
69
70
A v2 server would reply:
71