Added expiry headers to event stream.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@448 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-04-07 10:46:46 +00:00
parent eefde5a6df
commit b6bacc900d
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ void Event::StreamEvent( const char *path, int event_id, unsigned long refresh,
setbuf( fd, 0 ); setbuf( fd, 0 );
fprintf( fd, "Server: ZoneMinder Stream Server\r\n" ); fprintf( fd, "Server: ZoneMinder Stream Server\r\n" );
fprintf( fd, "Pragma: no-cache\r\n" );
fprintf( fd, "Cache-Control: no-cache\r\n" );
fprintf( fd, "Expires: Thu, 01 Dec 1994 16:00:00 GMT\r\n" );
fprintf( fd, "Content-Type: multipart/x-mixed-replace;boundary=ZoneMinderFrame\r\n\r\n" ); fprintf( fd, "Content-Type: multipart/x-mixed-replace;boundary=ZoneMinderFrame\r\n\r\n" );
fprintf( fd, "--ZoneMinderFrame\r\n" ); fprintf( fd, "--ZoneMinderFrame\r\n" );