mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Change byte result name to ContentBytes in preparation for merge
This commit is contained in:
@@ -76,15 +76,15 @@ namespace Jackett.Server
|
||||
cfg.CreateMap<WebClientByteResult, WebClientStringResult>().ForMember(x => x.ContentString, opt => opt.Ignore()).AfterMap((be, str) =>
|
||||
{
|
||||
var encoding = be.Request.Encoding ?? Encoding.UTF8;
|
||||
str.ContentString = encoding.GetString(be.Content);
|
||||
str.ContentString = encoding.GetString(be.ContentBytes);
|
||||
});
|
||||
|
||||
cfg.CreateMap<WebClientStringResult, WebClientByteResult>().ForMember(x => x.Content, opt => opt.Ignore()).AfterMap((str, be) =>
|
||||
cfg.CreateMap<WebClientStringResult, WebClientByteResult>().ForMember(x => x.ContentBytes, opt => opt.Ignore()).AfterMap((str, be) =>
|
||||
{
|
||||
if (!string.IsNullOrEmpty(str.ContentString))
|
||||
{
|
||||
var encoding = str.Request.Encoding ?? Encoding.UTF8;
|
||||
be.Content = encoding.GetBytes(str.ContentString);
|
||||
be.ContentBytes = encoding.GetBytes(str.ContentString);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user