From ade82689709441f64ec871709d7ce95b14cd729c Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 16 Jan 2007 02:59:39 +0000 Subject: Rudimentary stats --- opentracker.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index dfaafca..a2f0db2 100644 --- a/opentracker.c +++ b/opentracker.c @@ -127,6 +127,13 @@ e400: while (*c=='/') ++c; switch( scan_urlencoded_query( &c, data = c, SCAN_PATH ) ) { + case 5: /* scrape ? */ + if (byte_diff(data,5,"stats")) + goto e404; + /* Enough for http header + whole scrape string */ + if( ( reply_size = return_stats_for_tracker( SUCCESS_HTTP_HEADER_LENGTH + static_reply ) ) <= 0 ) + goto e500; + break; case 6: /* scrape ? */ if (byte_diff(data,6,"scrape")) goto e404; -- cgit v1.2.3