mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: Combine content headers with response headers
This commit is contained in:
parent
1c0621af0a
commit
c4cf38255e
@ -117,7 +117,11 @@ public HttpResponse GetResponse(HttpRequest request, CookieContainer cookies)
|
||||
}
|
||||
}
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user