summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c7
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;