1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

add the content-length header. I'm not getting any tracker errors anymore; please let me know if your experience differs

This commit is contained in:
Charles Kerr 2007-08-18 15:47:08 +00:00
parent 39a43cbc08
commit b9c2ea46ce

View file

@ -49,7 +49,7 @@
#define REQ_TIMEOUT_INTERVAL_SEC 60
/* the number of peers that is our goal */
#define NUMWANT 150
#define NUMWANT 80
/* the length of the 'key' argument passed in tracker requests */
#define TR_KEY_LEN 10
@ -534,6 +534,7 @@ addCommonHeaders( const Tracker * t,
snprintf( buf, sizeof(buf), "%s:%d", address->address, address->port );
evhttp_add_header( req->output_headers, "Host", buf );
evhttp_add_header( req->output_headers, "Connection", "close" );
evhttp_add_header( req->output_headers, "Content-length", "0" );
evhttp_add_header( req->output_headers, "User-Agent",
TR_NAME "/" LONG_VERSION_STRING );
}