core: fix form encoding. resolves #4346 resolves #3061 (#6994)

This commit is contained in:
Diego Heras
2020-02-08 07:03:03 +01:00
committed by GitHub
parent 77a2264164
commit f770596354
6 changed files with 36 additions and 10 deletions

View File

@@ -234,7 +234,7 @@ namespace Jackett.Common.Utils.Clients
else if (webRequest.Type == RequestType.POST)
{
if (webRequest.PostData != null)
request.Content = new FormUrlEncodedContent(webRequest.PostData);
request.Content = FormUrlEncodedContentWithEncoding(webRequest.PostData, webRequest.Encoding);
request.Method = HttpMethod.Post;
}
else