From 6d3e88aeb52ebfc89f9d78d6dbfd2dab1f1b59d3 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 3 May 2018 20:36:48 -0500 Subject: [PATCH] Unify formatting --- src/invidious.cr | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index a24ad3dc..9ed84ca0 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -809,9 +809,7 @@ get "/subscription_ajax" do |env| client = make_client(YT_URL) subs = client.get("/subscription_manager?disable_polymer=1", headers) - headers["Cookie"] += "; " + subs.cookies.add_request_headers(headers)["Cookie"] - match = subs.body.match(/'XSRF_TOKEN': "(?[A-Za-z0-9\_\-\=]+)"/) if match session_token = match["session_token"]