Re: [PATCH] Add ERR support to smart HTTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 6, 2010 at 8:26 PM, Shawn O. Pearce <spearce@xxxxxxxxxxx> wrote:

> That is, the following will trigger a correct error on the client:
>
>  200 OK
>  Content-Type: application/x-git-upload-pack-advertisement
>
>  001e# service=git-upload-pack
>  0022ERR You shall not do this

are those counts accurate for the specific example you show or just made up?

It seems the first line has a count in hex that includes the newline
at the end, and the second one has a count in decimal that does not
include the newline nor even the 4-digits plus "ERR"

> Likewise if you wanted to do this with receive-pack, replace upload
> with receive above and adjust the pkt-line lengths.

ok... what about all the other service commands?  like /info/refs?
What should I put there?

Sorry if I'm being stupid but I couldn't find this info anywhere (my C
grokking isn't as good as it used to be anyway).  I've tried all sorts
of combinations of sending out two such lines -- variations on length,
\r, \n, \r\n, neither, etc etc but I can't get the correct output.

Also, experimenting with making the update hook die similarly and
wireshark-ing the responde does not show similar pattern coming
through.

If you could point me to some place that says the precise format,
including \r\n, I'd greatly appreciate it.

Thanks,

Sitaram
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]