Skip to content

Commit bb4d000

Browse files
steadmongitster
authored andcommitted
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 <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a4d78ce commit bb4d000

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Documentation/technical/protocol-v2.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ When using the http:// or https:// transport a client makes a "smart"
6464
info/refs request as described in `http-protocol.txt` and requests that
6565
v2 be used by supplying "version=2" in the `Git-Protocol` header.
6666

67-
C: Git-Protocol: version=2
68-
C:
6967
C: GET $GIT_URL/info/refs?service=git-upload-pack HTTP/1.0
68+
C: Git-Protocol: version=2
7069

7170
A v2 server would reply:
7271

0 commit comments

Comments
 (0)