mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +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:
parent
39a43cbc08
commit
b9c2ea46ce
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue