From 5dbe08372bc1733ab83842561ba589da993da0ee Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 23 Jun 2020 00:49:38 -0500 Subject: [PATCH] nicoseiga: remove accept_fetish_warning. This should have been a cookie, but it doesn't matter because the strategy still works without it. --- app/logical/nico_seiga_api_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/nico_seiga_api_client.rb b/app/logical/nico_seiga_api_client.rb index b9f4f00d7..d471836d6 100644 --- a/app/logical/nico_seiga_api_client.rb +++ b/app/logical/nico_seiga_api_client.rb @@ -88,7 +88,7 @@ class NicoSeigaApiClient resp = http.cache(1.hour).post("https://account.nicovideo.jp/login/redirector?site=seiga", form: form) raise RuntimeError, "NicoSeiga login failed (status=#{resp.status} url=#{url})" if resp.status != 200 - resp = http.headers(accept_fetish_warning: 2).cache(1.minute).get(url) + resp = http.cache(1.minute).get(url) #raise RuntimeError, "NicoSeiga get failed (status=#{resp.status} url=#{url})" if resp.status != 200 resp