diff --git a/src/http.rs b/src/http.rs index 1cbd5a5..d49184b 100644 --- a/src/http.rs +++ b/src/http.rs @@ -27,7 +27,10 @@ impl fmt::Display for Error { } fn init_curl(handle: &mut Easy2>, url: &Url) -> Result<()> { - handle.verbose(true)?; + if log::max_level() == log::LevelFilter::Debug { + handle.verbose(true)?; + } + handle.tcp_nodelay(true)?; handle.useragent(constants::USER_AGENT)?; handle.url(url.as_ref())?;