diff --git a/core/datasource/src/main/java/com/tangem/datasource/utils/HttpClientExt.kt b/core/datasource/src/main/java/com/tangem/datasource/utils/HttpClientExt.kt index a1503bd87d..6cf6b14e93 100644 --- a/core/datasource/src/main/java/com/tangem/datasource/utils/HttpClientExt.kt +++ b/core/datasource/src/main/java/com/tangem/datasource/utils/HttpClientExt.kt @@ -63,7 +63,11 @@ internal fun OkHttpClient.Builder.addHeaders(requestHeaders: Map val request = chain.request().newBuilder().apply { - requestHeaders.forEach { addHeader(it.key, it.value.invoke()) } + requestHeaders.forEach { + val value = it.value.invoke() + + if (value.isNotBlank()) addHeader(name = it.key, value = value) + } }.build() chain.proceed(request)