diff --git a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs index de6d3c3..6d4fee2 100644 --- a/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs +++ b/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs @@ -152,8 +152,10 @@ protected override async Task SendAsync(HttpRequestMessage var respHeaders = resp.Headers(); foreach (var k in respHeaders.Names()) { - ret.Headers.TryAddWithoutValidation(k, respHeaders.Get(k)); - ret.Content.Headers.TryAddWithoutValidation(k, respHeaders.Get(k)); + foreach (string item in respHeaders.Values(k)) { + ret.Headers.TryAddWithoutValidation(k, item); + ret.Content.Headers.TryAddWithoutValidation(k, item); + } } return ret;