Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
protocol-v2 doc: put HTTP headers after request
author
Josh Steadmon
<steadmon@google.com>
Fri, 22 Jun 2018 19:01:12 +0000
(12:01 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 22 Jun 2018 20:03:42 +0000
(13:03 -0700)
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>
Documentation/technical/protocol-v2.txt
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a4d78ce
)
diff --git
a/Documentation/technical/protocol-v2.txt
b/Documentation/technical/protocol-v2.txt
index 136179d7d8bcaf72686bed4aa5e3cd9376ef77bd..11c0efbfdac35774c8fe3ac2e37d09c7796c10ef 100644
(file)
--- 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: