Fixed: Combine content headers with response headers

This commit is contained in:
Qstick 2021-11-23 19:21:59 -06:00
parent 1c0621af0a
commit c4cf38255e
1 changed files with 5 additions and 1 deletions

View File

@ -117,7 +117,11 @@ namespace NzbDrone.Common.Http.Dispatchers
}
}
return new HttpResponse(request, new HttpHeader(responseMessage.Headers), data, responseMessage.StatusCode);
var headers = responseMessage.Headers.ToNameValueCollection();
headers.Add(responseMessage.Content.Headers.ToNameValueCollection());
return new HttpResponse(request, new HttpHeader(headers), data, responseMessage.StatusCode);
}
protected virtual System.Net.Http.HttpClient GetClient(HttpUri uri)