fix: search results are no longer empty (merge pull request #51 from fxeP1/fix-search)

Fix search results being empty
This commit is contained in:
Ahwx 2025-03-06 12:40:21 +00:00 committed by GitHub
commit 2f85c1ddfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,9 @@ $prepare_search_curl_obj = function ($query, $bookmark) use ($url, $header_funct
}
$data_param = urlencode(json_encode($data_param_obj));
$headers = [];
$headers = [
"x-pinterest-pws-handler: www/search/[scope].js"
];
if ($csrftoken !== null) {
$headers[] = "x-csrftoken: $csrftoken";