summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-11-24 20:34:41 +0000
committererdgeist <>2007-11-24 20:34:41 +0000
commit09a662dfce63641aea2d873a4c3f3a85daaedb5b (patch)
tree395d1c1b75338caa652a3679d34580fcfccef6fb
parente3103d30f73e087382b9eebdea5c83166368e4b1 (diff)
Missed the second strnstr... fixed.
-rw-r--r--opentracker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index 9b8ea5b..1532214 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -388,7 +388,8 @@ LOG_TO_STDERR( "sync: %d.%d.%d.%d\n", h->ip[0], h->ip[1], h->ip[2], h->ip[3] );
388 388
389 if( mode == TASK_STATS_TPB ) { 389 if( mode == TASK_STATS_TPB ) {
390#ifdef WANT_COMPRESSION_GZIP 390#ifdef WANT_COMPRESSION_GZIP
391 if( strnstr( d, "gzip", l ) ) { 391 d[l-1] = 0;
392 if( strstr( d, "gzip" ) ) {
392 h->flag |= STRUCT_HTTP_FLAG_GZIP; 393 h->flag |= STRUCT_HTTP_FLAG_GZIP;
393 format |= TASK_FLAG_GZIP; 394 format |= TASK_FLAG_GZIP;
394 } 395 }