Escape proxied request URL
This commit is contained in:
parent
03b616622e
commit
8e71afe158
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ func fetchSubredditPosts(
|
||||||
var client requestDoer = defaultHTTPClient
|
var client requestDoer = defaultHTTPClient
|
||||||
|
|
||||||
if requestUrlTemplate != "" {
|
if requestUrlTemplate != "" {
|
||||||
requestUrl = strings.ReplaceAll(requestUrlTemplate, "{REQUEST-URL}", requestUrl)
|
requestUrl = strings.ReplaceAll(requestUrlTemplate, "{REQUEST-URL}", url.QueryEscape(requestUrl))
|
||||||
} else if proxyClient != nil {
|
} else if proxyClient != nil {
|
||||||
client = proxyClient
|
client = proxyClient
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue