fix: pass null for authData in sendHttpRequest for digest authentication to prevent infinite loop when realm and nonce are empty

This commit is contained in:
Udhay-Adithya
2025-07-12 00:43:44 +05:30
parent 20c71073cb
commit 3ca5255e8f

View File

@@ -109,7 +109,7 @@ Future<HttpRequestModel> handleAuth(
final httpResult = await sendHttpRequest( final httpResult = await sendHttpRequest(
"digest-${Random.secure()}", "digest-${Random.secure()}",
APIType.rest, APIType.rest,
authData, null,
httpRequestModel, httpRequestModel,
); );
final httpResponse = httpResult.$1; final httpResponse = httpResult.$1;