diff --git a/libtransmission/http.c b/libtransmission/http.c index 0248f3be4..bbd12d2d1 100644 --- a/libtransmission/http.c +++ b/libtransmission/http.c @@ -448,10 +448,10 @@ tr_httpClient( int method, const char * host, int port, const char * fmt, ... ) va_end( ap1 ); if( tr_sprintf( EXPANDBUF( http->header ), " HTTP/1.1" CR LF - "Host: %s" CR LF + "Host: %s:%d" CR LF "User-Agent: %s/%d.%d%d" CR LF "Connection: close" CR LF, - http->host, TR_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_MAINTENANCE ) ) + http->host, http->port, TR_NAME, VERSION_MAJOR, VERSION_MINOR, VERSION_MAINTENANCE ) ) { goto err; }