--- a/TalerWallet1/Quickjs/QuickDataTask.swift 2026-11-26 15:59:50.983125897 +0100 +++ b/TalerWallet1/Quickjs/QuickDataTask.swift 2026-11-26 15:59:50.991125895 +0100 @@ -195,7 +195,11 @@ } defer { endCallback() } - if let response = response as? HTTPURLResponse { + // A transfer that failed is a failure even if the headers had arrived: URLSession + // then still passes the response object, with an error and without data (connection + // lost or timed out in the body). Handing that on as a response would tell + // wallet-core "200, empty body" for what was a network error. + if error == nil, let response = response as? HTTPURLResponse { deliver(response: response, data: data ?? Data(), method: method, url: url) } else { #if DEBUG || TALER_NIGHTLY