mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 08:56:29 +03:00
deltachat-ffi: update read_url_blob for new .log_err()
This commit is contained in:
@@ -4589,7 +4589,10 @@ pub unsafe extern "C" fn dc_get_http_response(
|
||||
|
||||
let context = &*context;
|
||||
let url = to_string_lossy(url);
|
||||
if let Ok(response) = block_on(read_url_blob(context, &url)).log_err(context, "read_url_blob") {
|
||||
if let Ok(response) = block_on(read_url_blob(context, &url))
|
||||
.context("read_url_blob")
|
||||
.log_err(context)
|
||||
{
|
||||
Box::into_raw(Box::new(response))
|
||||
} else {
|
||||
ptr::null_mut()
|
||||
|
||||
Reference in New Issue
Block a user