From 7fa3f40bc4212be4f21c81eccaee89964dc0362f Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 23 Nov 2022 08:14:23 +0000 Subject: [PATCH] Close connection by default. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 04968c5..98f8d33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -55,7 +55,7 @@ async fn fetch_restrictions(video_id: &str) -> RestrictionInfo { .header("X-Origin", "https://explorer.apis.google.com") .header("X-Referer", "https://explorer.apis.google.com") .header("X-Goog-Encode-Response-If-Executable", "base64") - .header("Connection", "keep-alive") + .header("Connection", "close") .header("Sec-Fetch-Dest", "empty") .header("Sec-Fetch-Mode", "cors") .header("Sec-Fetch-Site", "same-origin")