summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ot_http.c b/ot_http.c
index 22fb68f..e364809 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -347,6 +347,7 @@ static ssize_t http_handle_scrape( const int64 sock, struct ot_workstruct *ws, c
347 unsigned long long numwants[201]; 347 unsigned long long numwants[201];
348#endif 348#endif
349 349
350#if defined( WANT_KEEPALIVE ) || defined( WANT_IP_FROM_PROXY )
350static char* http_header( char *data, size_t byte_count, char *header ) { 351static char* http_header( char *data, size_t byte_count, char *header ) {
351 size_t i; 352 size_t i;
352 long sl = strlen( header ); 353 long sl = strlen( header );
@@ -359,6 +360,7 @@ static char* http_header( char *data, size_t byte_count, char *header ) {
359 } 360 }
360 return 0; 361 return 0;
361} 362}
363#endif
362 364
363static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 }, 365static ot_keywords keywords_announce[] = { { "port", 1 }, { "left", 2 }, { "event", 3 }, { "numwant", 4 }, { "compact", 5 }, { "compact6", 5 }, { "info_hash", 6 },
364#ifdef WANT_IP_FROM_QUERY_STRING 366#ifdef WANT_IP_FROM_QUERY_STRING