doc: fix want-capability separator
authorMasaya Suzuki <draftcode@gmail.com>
Sat, 28 Jul 2018 21:16:30 +0000 (14:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jul 2018 18:25:20 +0000 (11:25 -0700)
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>
Documentation/technical/http-protocol.txt
index 64f49d0bbb7b0c28832562e59fc8b89e872c4f4b..9c5b6f0facbf41ce4ffa492dda6795bca229f170 100644 (file)
@@ -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)