mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26: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 context = &*context;
|
||||||
let url = to_string_lossy(url);
|
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))
|
Box::into_raw(Box::new(response))
|
||||||
} else {
|
} else {
|
||||||
ptr::null_mut()
|
ptr::null_mut()
|
||||||
|
|||||||
Reference in New Issue
Block a user