[xiph-commits] r3677 - liboggz/trunk/src/tools/oggz-chop
conrad at svn.annodex.net
conrad at svn.annodex.net
Mon Aug 4 21:22:01 PDT 2008
Author: conrad
Date: 2008-08-04 21:22:00 -0700 (Mon, 04 Aug 2008)
New Revision: 3677
Modified:
liboggz/trunk/src/tools/oggz-chop/cgi.c
liboggz/trunk/src/tools/oggz-chop/header.c
liboggz/trunk/src/tools/oggz-chop/header.h
Log:
Add "X-Accept-TimeURI: application/ogg" HTTP response header to oggz-chop CGI output.
Modified: liboggz/trunk/src/tools/oggz-chop/cgi.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/cgi.c 2008-08-03 07:28:38 UTC (rev 3676)
+++ liboggz/trunk/src/tools/oggz-chop/cgi.c 2008-08-05 04:22:00 UTC (rev 3677)
@@ -177,6 +177,8 @@
header_last_modified (last_time);
+ header_accept_timeuri_ogg ();
+
/*config_init (params);*/
parse_query (state, query_string);
Modified: liboggz/trunk/src/tools/oggz-chop/header.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/header.c 2008-08-03 07:28:38 UTC (rev 3676)
+++ liboggz/trunk/src/tools/oggz-chop/header.c 2008-08-05 04:22:00 UTC (rev 3677)
@@ -8,6 +8,7 @@
#include "httpdate.h"
#define CONTENT_TYPE_OGG "Content-Type: application/ogg\n"
+#define ACCEPT_TIMEURI_OGG "X-Accept-TimeURI: application/ogg\n"
int
header_last_modified (time_t mtime)
@@ -32,6 +33,12 @@
}
int
+header_accept_timeuri_ogg (void)
+{
+ return printf (ACCEPT_TIMEURI_OGG);
+}
+
+int
header_content_length (off_t len)
{
return printf ("Content-Length: %ld\n", (long)len);
Modified: liboggz/trunk/src/tools/oggz-chop/header.h
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/header.h 2008-08-03 07:28:38 UTC (rev 3676)
+++ liboggz/trunk/src/tools/oggz-chop/header.h 2008-08-05 04:22:00 UTC (rev 3677)
@@ -1,6 +1,7 @@
#ifndef __HEADER_H__
#define __HEADER_H__
+int header_accept_timeuri_ogg (void);
int header_content_type_ogg (void);
int header_content_length (int len);
int header_last_modified (time_t mtime);
More information about the commits
mailing list