mirror of
https://git.zx2c4.com/cgit
synced 2025-08-16 15:31:57 +02:00
Add support for cloning over http
This patch implements basic support for cloning over http, based on the work on git-http-backend by Shawn O. Pearce. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
0f0ab148c6
commit
02a545e634
6 changed files with 140 additions and 0 deletions
7
html.c
7
html.c
|
@ -51,6 +51,13 @@ void htmlf(const char *format, ...)
|
|||
html(buf);
|
||||
}
|
||||
|
||||
void html_status(int code, int more_headers)
|
||||
{
|
||||
htmlf("Status: %d\n", code);
|
||||
if (!more_headers)
|
||||
html("\n");
|
||||
}
|
||||
|
||||
void html_txt(char *txt)
|
||||
{
|
||||
char *t = txt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue