mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
Fixed: Refactored the Indexer architecture to support non-rss indexers.
This commit is contained in:
parent
22c9bc402f
commit
5e62c2335f
57 changed files with 2196 additions and 1470 deletions
|
@ -46,6 +46,7 @@ namespace NzbDrone.Common.Http
|
|||
webRequest.Method = request.Method.ToString();
|
||||
webRequest.UserAgent = _userAgent;
|
||||
webRequest.KeepAlive = false;
|
||||
webRequest.AllowAutoRedirect = request.AllowAutoRedirect;
|
||||
|
||||
if (!RuntimeInfoBase.IsProduction)
|
||||
{
|
||||
|
@ -61,8 +62,7 @@ namespace NzbDrone.Common.Http
|
|||
|
||||
if (!request.Body.IsNullOrWhiteSpace())
|
||||
{
|
||||
var bytes = new byte[request.Body.Length * sizeof(char)];
|
||||
Buffer.BlockCopy(request.Body.ToCharArray(), 0, bytes, 0, bytes.Length);
|
||||
var bytes = request.Headers.GetEncodingFromContentType().GetBytes(request.Body.ToCharArray());
|
||||
|
||||
webRequest.ContentLength = bytes.Length;
|
||||
using (var writeStream = webRequest.GetRequestStream())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue