mirror of https://github.com/Jackett/Jackett
Curl: Fix Bad Request errors
This commit is contained in:
parent
6f54958ec0
commit
1050157546
|
@ -30,7 +30,7 @@ namespace Jackett
|
||||||
public CurlRequest(HttpMethod method, string url, string cookies = null, string referer = null, Dictionary<string, string> headers = null, string rawPOSTData = null)
|
public CurlRequest(HttpMethod method, string url, string cookies = null, string referer = null, Dictionary<string, string> headers = null, string rawPOSTData = null)
|
||||||
{
|
{
|
||||||
Method = method;
|
Method = method;
|
||||||
Url = url;
|
Url = url.Replace(" ", "+"); // avoids bad request to cloudflare for urls containing a space followed by H (" H")
|
||||||
Cookies = cookies;
|
Cookies = cookies;
|
||||||
Referer = referer;
|
Referer = referer;
|
||||||
Headers = headers;
|
Headers = headers;
|
||||||
|
|
Loading…
Reference in New Issue