Skip to content

Commit

Permalink
add header
Browse files Browse the repository at this point in the history
  • Loading branch information
minami1733 committed Jul 9, 2023
1 parent 8e4cd8e commit bc04d0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fantia/fanclubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc04d0c

Please sign in to comment.