diff options
author | erdgeist <> | 2007-01-16 02:59:39 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-16 02:59:39 +0000 |
commit | ade82689709441f64ec871709d7ce95b14cd729c (patch) | |
tree | fc30416e009b355556bdc9982707f45f5c97734a /opentracker.c | |
parent | ec531730ababd42f01a5b30da0cabf5e5a9577f9 (diff) |
Rudimentary stats
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opentracker.c b/opentracker.c index dfaafca..a2f0db2 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -127,6 +127,13 @@ e400: | |||
127 | while (*c=='/') ++c; | 127 | while (*c=='/') ++c; |
128 | 128 | ||
129 | switch( scan_urlencoded_query( &c, data = c, SCAN_PATH ) ) { | 129 | switch( scan_urlencoded_query( &c, data = c, SCAN_PATH ) ) { |
130 | case 5: /* scrape ? */ | ||
131 | if (byte_diff(data,5,"stats")) | ||
132 | goto e404; | ||
133 | /* Enough for http header + whole scrape string */ | ||
134 | if( ( reply_size = return_stats_for_tracker( SUCCESS_HTTP_HEADER_LENGTH + static_reply ) ) <= 0 ) | ||
135 | goto e500; | ||
136 | break; | ||
130 | case 6: /* scrape ? */ | 137 | case 6: /* scrape ? */ |
131 | if (byte_diff(data,6,"scrape")) | 138 | if (byte_diff(data,6,"scrape")) |
132 | goto e404; | 139 | goto e404; |