Remove extra replacing (already done by Uri.EscapeDataString)

This commit is contained in:
François-Xavier Payet
2022-01-15 21:29:44 +01:00
committed by Qstick
parent a7b1ef19f5
commit 6880f38635

View File

@@ -1013,7 +1013,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
// build search URL
// HttpUtility.UrlPathEncode seems to only encode spaces, we use UrlEncode and replace + with %20 as a workaround
var searchUrl = ResolvePath(ApplyGoTemplateText(searchPath.Path, variables, Uri.EscapeDataString).Replace("+", "%20")).AbsoluteUri;
var searchUrl = ResolvePath(ApplyGoTemplateText(searchPath.Path, variables, Uri.EscapeDataString)).AbsoluteUri;
var queryCollection = new List<KeyValuePair<string, string>>();
var method = HttpMethod.Get;