summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ot_http.c b/ot_http.c
index 232911b..7b0e7ae 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -253,10 +253,12 @@ static ssize_t http_handle_stats( const int64 client_socket, char *data, char *d
253 mode = TASK_STATS_TPB; 253 mode = TASK_STATS_TPB;
254 else if( !byte_diff(data,4,"herr")) 254 else if( !byte_diff(data,4,"herr"))
255 mode = TASK_STATS_HTTPERRORS; 255 mode = TASK_STATS_HTTPERRORS;
256 else if( !byte_diff(data,9,"startstop")) 256 else if( !byte_diff(data,4,"startstop"))
257 mode = TASK_STATS_STARTSTOP; 257 mode = TASK_STATS_STARTSTOP;
258 else if( !byte_diff(data,10,"toraddrem")) 258 else if( !byte_diff(data,4,"toraddrem"))
259 mode = TASK_STATS_TORADDREM; 259 mode = TASK_STATS_TORADDREM;
260 else if( !byte_diff(data,4,"vers"))
261 mode = TASK_STATS_VERSION;
260 else 262 else
261 HTTPERROR_400_PARAM; 263 HTTPERROR_400_PARAM;
262 break; 264 break;