1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-13 07:42:48 -05:00

Rename replaceUrl to replaceUrls

This commit is contained in:
Zed
2021-12-27 02:27:49 +01:00
parent 0e01ecb001
commit 9e413e1f8c
7 changed files with 11 additions and 11 deletions

View File

@@ -89,7 +89,7 @@ proc resolve*(url: string; prefs: Prefs): Future[string] {.async.} =
let client = newAsyncHttpClient(maxRedirects=0)
try:
let resp = await client.request(url, HttpHead)
result = resp.headers["location"].replaceUrl(prefs)
result = resp.headers["location"].replaceUrls(prefs)
except:
discard
finally: