ソースを参照

forgor to set headers

lolcat 2 年 前
コミット
8161f8e7b8
1 ファイル変更4 行追加2 行削除
  1. 4 2
      scraper/sc.php

+ 4 - 2
scraper/sc.php

@@ -57,7 +57,8 @@ class sc{
 				"Connection: keep-alive",
 				"Sec-Fetch-Dest: empty",
 				"Sec-Fetch-Mode: cors",
-				"Sec-Fetch-Site: same-site"]
+				"Sec-Fetch-Site: same-site",
+				"Priority: u=1"]
 			);
 		}else{
 			
@@ -433,7 +434,8 @@ class sc{
 				$this->get(
 					$proxy,
 					"https://soundcloud.com",
-					[]
+					[],
+					true
 				);
 		}catch(Exception $error){