All of lore.kernel.org
 help / color / mirror / Atom feed
* bug in HTTP protocol spec
@ 2018-02-21 18:29 Dorian Taylor
  2018-02-21 22:15 ` Jeff King
  0 siblings, 1 reply; 13+ messages in thread
From: Dorian Taylor @ 2018-02-21 18:29 UTC (permalink / raw)
  To: git

Hello list,

I had been banging my head all morning trying to figure out why I couldn’t get a little HTTP implementation to clone/push via the smart protocol (just wrapping git-receive-pack/git-upload-pack). I kept getting the following (likely familiar to some) error:

```
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

I didn’t get an insight until I ran with GIT_TRACE_PACKET=true on a known-good remote (i.e. GitHub), that the null packet-line `0000` has to follow the service line. This is not reflected in the example here:

https://github.com/git/git/blob/6464679d9620d91b639e2681b9cc6473f3856d09/Documentation/technical/http-protocol.txt#L216

It is also not reflected in the BNF:

https://github.com/git/git/blob/6464679d9620d91b639e2681b9cc6473f3856d09/Documentation/technical/http-protocol.txt#L279

(Note these links are from the most recent commit of this file as of this writing.)

Just thought somebody would like to know.

Regards,

--
Dorian Taylor
Make things. Make sense.
https://doriantaylor.com


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-03-03 10:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-21 18:29 bug in HTTP protocol spec Dorian Taylor
2018-02-21 22:15 ` Jeff King
2018-02-21 23:50   ` Dorian Taylor
2018-02-22  5:37     ` Jonathan Nieder
2018-02-22  7:23       ` Dorian Taylor
2018-02-22 10:08         ` Jeff King
2018-02-22 16:16           ` Dorian Taylor
2018-02-22 20:02           ` Junio C Hamano
2018-02-22 20:12             ` Dorian Taylor
2018-03-03  5:27               ` [PATCH] smart-http: document flush after "# service" line Jeff King
2018-03-03  8:28                 ` Eric Sunshine
2018-03-03 10:02                   ` Jeff King
2018-02-22 17:52         ` bug in HTTP protocol spec Brandon Williams

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.