mirror of
https://github.com/transmission/transmission
synced 2025-03-10 14:13:23 +00:00
(libT) #1480: RPC Server Deflated response
This commit is contained in:
parent
65ec586835
commit
ed95969380
1 changed files with 2 additions and 0 deletions
|
@ -271,9 +271,11 @@ add_response( struct evhttp_request * req,
|
||||||
evbuffer_drain( out, 2 );
|
evbuffer_drain( out, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
tr_ninf( MY_NAME, _( "Deflated response from %zu bytes to %zu" ),
|
tr_ninf( MY_NAME, _( "Deflated response from %zu bytes to %zu" ),
|
||||||
content_len,
|
content_len,
|
||||||
EVBUFFER_LENGTH( out ) );
|
EVBUFFER_LENGTH( out ) );
|
||||||
|
#endif
|
||||||
evhttp_add_header( req->output_headers,
|
evhttp_add_header( req->output_headers,
|
||||||
"Content-Encoding", "deflate" );
|
"Content-Encoding", "deflate" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue