summaryrefslogtreecommitdiff
path: root/Documentation/technical/http-protocol.txt
diff options
context:
space:
mode:
authorMasaya Suzuki <draftcode@gmail.com>2018-07-28 21:16:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 18:25:20 (GMT)
commit742587662fbdf487eb85e847f6253a4f5dcf18fa (patch)
tree49f9f14c1d100ce264710b85218ea80f6efc612a /Documentation/technical/http-protocol.txt
parentffc6fa0e396238de3a30623912980263b4f283ab (diff)
downloadgit-742587662fbdf487eb85e847f6253a4f5dcf18fa.zip
git-742587662fbdf487eb85e847f6253a4f5dcf18fa.tar.gz
git-742587662fbdf487eb85e847f6253a4f5dcf18fa.tar.bz2
doc: fix want-capability separator
Unlike ref advertisement, client capabilities and the first want are separated by SP, not NUL, in the implementation. Fix the documentation to align with the implementation. pack-protocol.txt is already fixed. Signed-off-by: Masaya Suzuki <masayasuzuki@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/http-protocol.txt')
-rw-r--r--Documentation/technical/http-protocol.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/technical/http-protocol.txt b/Documentation/technical/http-protocol.txt
index 64f49d0..9c5b6f0 100644
--- a/Documentation/technical/http-protocol.txt
+++ b/Documentation/technical/http-protocol.txt
@@ -338,11 +338,11 @@ server advertises capability `allow-tip-sha1-in-want` or
request_end
request_end = "0000" / "done"
- want_list = PKT-LINE(want NUL cap_list LF)
+ want_list = PKT-LINE(want SP cap_list LF)
*(want_pkt)
want_pkt = PKT-LINE(want LF)
want = "want" SP id
- cap_list = *(SP capability) SP
+ cap_list = capability *(SP capability)
have_list = *PKT-LINE("have" SP id LF)