From bc04d0c90b1b711b00c884b35b5e421a7b75da06 Mon Sep 17 00:00:00 2001 From: minami1733 Date: Sun, 9 Jul 2023 17:53:53 +0900 Subject: [PATCH] add header --- fantia/fanclubs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fantia/fanclubs.go b/fantia/fanclubs.go index 65d8d8a..a674dbb 100644 --- a/fantia/fanclubs.go +++ b/fantia/fanclubs.go @@ -251,6 +251,7 @@ func GetPost(client *http.Client, parent string, post_id int) (bool, error) { } req.Header.Add("x-csrf-token", token) + req.Header.Add("x-requested-with", "XMLHttpRequest") // 投稿を取得 resp, err := client.Do(req)