Skip to content

Commit 46207a5

Browse files
QueenJcloudgitster
authored andcommitted
doc: clarify server behavior for invalid 'want' lines in HTTP protocol
Update the documentation to clearly describe how the server responds when a client sends an invalid or malformed `want` line during the HTTP protocol exchange. The server includes the offending object name in its error message. Signed-off-by: Queen Ediri Jessa <qjessa662@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7f278e9 commit 46207a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/gitprotocol-http.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ If no "want" objects are received, send an error:
443443
TODO: Define error if no "want" lines are requested.
444444
445445
If any "want" object is not reachable, send an error:
446-
TODO: Define error if an invalid "want" is requested.
446+
When a Git server receives an invalid or malformed `want` line, it
447+
responds with an error message that includes the offending object name.
447448
448449
Create an empty list, `s_common`.
449450

0 commit comments

Comments
 (0)