Usings https in gelbooru

This commit is contained in:
Kwoth
2022-01-06 21:05:55 +01:00
parent f1770cbb8f
commit 352ec9a562

View File

@@ -18,8 +18,13 @@ public class GelbooruImageDownloader : ImageDownloader<DapiImageObject>
CancellationToken cancel = default)
{
var tagString = ImageDownloaderHelper.GetTagString(tags, isExplicit);
var uri =
$"http://gelbooru.com/index.php?page=dapi&s=post&json=1&q=index&limit=100&tags={tagString}&pid={page}";
var uri = $"https://gelbooru.com/index.php?page=dapi"
+ $"&s=post"
+ $"&json=1"
+ $"&q=index"
+ $"&limit=100"
+ $"&tags={tagString}"
+ $"&pid={page}";
using var req = new HttpRequestMessage(HttpMethod.Get, uri);
using var res = await _http.SendAsync(req, cancel);
res.EnsureSuccessStatusCode();