about summary refs log tree commit diff stats
path: root/html.c
diff options
context:
space:
mode:
authorLars Hjemli2008-09-01 22:40:24 +0200
committerLars Hjemli2008-09-01 22:40:24 +0200
commit288d502b3d8e7fa916104b486bbb146521e5c716 (patch)
treeafa132f6c973ab30e0b8ed1201fb691fe91103c0 /html.c
parentcache.c: use %zd for off_t argument (diff)
parentAdd support for cloning over http (diff)
downloadcgit-288d502b3d8e7fa916104b486bbb146521e5c716.tar.gz
cgit-288d502b3d8e7fa916104b486bbb146521e5c716.zip
Merge branch 'lh/clone'
* lh/clone:
  Add support for cloning over http

Conflicts:
	cmd.c
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/html.c b/html.c index bddb04d..1237076 100644 --- a/html.c +++ b/html.c
@@ -51,6 +51,13 @@ void htmlf(const char *format, ...)
51 html(buf); 51 html(buf);
52} 52}
53 53
54void html_status(int code, int more_headers)
55{
56 htmlf("Status: %d\n", code);
57 if (!more_headers)
58 html("\n");
59}
60
54void html_txt(char *txt) 61void html_txt(char *txt)
55{ 62{
56 char *t = txt; 63 char *t = txt;